---
title: Vectorize
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Vectorize

#### VectorizeIndexes

##### [List Vectorize Indexes](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/list)

vectorize.indexes.list(IndexListParams\*\*kwargs) -> SyncSinglePage\[[CreateIndex](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)>)]

GET/accounts/{account\_id}/vectorize/v2/indexes

##### [Get Vectorize Index](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/get)

vectorize.indexes.get(strindex\_name, IndexGetParams\*\*kwargs) -> [CreateIndex](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)>)

GET/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}

##### [Create Vectorize Index](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/create)

vectorize.indexes.create(IndexCreateParams\*\*kwargs) -> [CreateIndex](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)>)

POST/accounts/{account\_id}/vectorize/v2/indexes

##### [Delete Vectorize Index](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/delete)

vectorize.indexes.delete(strindex\_name, IndexDeleteParams\*\*kwargs) -> [IndexDeleteResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}

##### [Insert Vectors](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/insert)

vectorize.indexes.insert(strindex\_name, IndexInsertParams\*\*kwargs) -> [IndexInsertResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/insert

##### [Query Vectors](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/query)

vectorize.indexes.query(strindex\_name, IndexQueryParams\*\*kwargs) -> [IndexQueryResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/query

##### [Upsert Vectors](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/upsert)

vectorize.indexes.upsert(strindex\_name, IndexUpsertParams\*\*kwargs) -> [IndexUpsertResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/upsert

##### [Delete Vectors By Identifier](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/delete_by_ids)

vectorize.indexes.delete\_by\_ids(strindex\_name, IndexDeleteByIDsParams\*\*kwargs) -> [IndexDeleteByIDsResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_by_ids_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/delete\_by\_ids

##### [Get Vectors By Identifier](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/get_by_ids)

vectorize.indexes.get\_by\_ids(strindex\_name, IndexGetByIDsParams\*\*kwargs) -> object

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/get\_by\_ids

##### [Get Vectorize Index Info](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/info)

vectorize.indexes.info(strindex\_name, IndexInfoParams\*\*kwargs) -> [IndexInfoResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/info

##### [List Vectors](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/methods/list_vectors)

vectorize.indexes.list\_vectors(strindex\_name, IndexListVectorsParams\*\*kwargs) -> [IndexListVectorsResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/list

##### ModelsExpand Collapse

<details>

<summary>

class CreateIndex: …

</summary>

<details>

<summary>

config: Optional\[Config]

</summary>

dimensions: int

Specifies the number of dimensions for the index

maximum1536

minimum1

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20dimensions">Link to this property</a>

<details>

<summary>

metric: Literal\["cosine", "euclidean", "dot-product"]

Specifies the type of metric to use calculating distance.

</summary>

One of the following:

"cosine"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20metric%20%3E%20(member)%200">Link to this property</a>

"euclidean"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20metric%20%3E%20(member)%201">Link to this property</a>

"dot-product"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20metric%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20metric">Link to this property</a>

<details>

<summary>

preset: Optional\[Literal\["@cf/baai/bge-small-en-v1.5", "@cf/baai/bge-base-en-v1.5", "@cf/baai/bge-large-en-v1.5", 2 more]]

Specifies the preset to use for the index.

</summary>

One of the following:

"@cf/baai/bge-small-en-v1.5"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%200">Link to this property</a>

"@cf/baai/bge-base-en-v1.5"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%201">Link to this property</a>

"@cf/baai/bge-large-en-v1.5"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%202">Link to this property</a>

"openai/text-embedding-ada-002"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%203">Link to this property</a>

"cohere/embed-multilingual-v2.0"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config">Link to this property</a>

created\_on: Optional\[datetime]

Specifies the timestamp the resource was created as an ISO8601 string.

formatdate-time

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

description: Optional\[str]

Specifies the description of the index.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

modified\_on: Optional\[datetime]

Specifies the timestamp the resource was modified as an ISO8601 string.

formatdate-time

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)>)

<details>

<summary>

class IndexDeleteVectorsByID: …

</summary>

count: Optional\[int]

The count of the vectors successfully deleted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_vectors_by_id%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

ids: Optional\[List\[str]]

Array of vector identifiers of the vectors that were successfully processed for deletion.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_vectors_by_id%20%3E%20(schema)%20%3E%20(property)%20ids">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_vectors_by_id%20%3E%20(schema)>)

<details>

<summary>

class IndexDimensionConfiguration: …

</summary>

dimensions: int

Specifies the number of dimensions for the index

maximum1536

minimum1

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20dimensions">Link to this property</a>

<details>

<summary>

metric: Literal\["cosine", "euclidean", "dot-product"]

Specifies the type of metric to use calculating distance.

</summary>

One of the following:

"cosine"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20metric%20%3E%20(member)%200">Link to this property</a>

"euclidean"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20metric%20%3E%20(member)%201">Link to this property</a>

"dot-product"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20metric%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20metric">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)>)

<details>

<summary>

class IndexInsert: …

</summary>

count: Optional\[int]

Specifies the count of the vectors successfully inserted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

ids: Optional\[List\[str]]

Array of vector identifiers of the vectors successfully inserted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert%20%3E%20(schema)%20%3E%20(property)%20ids">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert%20%3E%20(schema)>)

<details>

<summary>

class IndexQuery: …

</summary>

count: Optional\[int]

Specifies the count of vectors returned by the search

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

<details>

<summary>

matches: Optional\[List\[Match]]

Array of vectors matched by the search

</summary>

id: Optional\[str]

Identifier for a Vector

maxLength64

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

metadata: Optional\[object]

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20metadata">Link to this property</a>

score: Optional\[float]

The score of the vector according to the index’s distance metric

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20score">Link to this property</a>

values: Optional\[List\[float]]

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)>)

<details>

<summary>

class IndexUpsert: …

</summary>

count: Optional\[int]

Specifies the count of the vectors successfully inserted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

ids: Optional\[List\[str]]

Array of vector identifiers of the vectors successfully inserted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert%20%3E%20(schema)%20%3E%20(property)%20ids">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert%20%3E%20(schema)>)

<details>

<summary>

Union\[str, object, null]

</summary>

One of the following:

str

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

object

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_response%20%3E%20(schema)>)

<details>

<summary>

class IndexInsertResponse: …

</summary>

mutation\_id: Optional\[str]

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert_response%20%3E%20(schema)>)

<details>

<summary>

class IndexQueryResponse: …

</summary>

count: Optional\[int]

Specifies the count of vectors returned by the search

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

<details>

<summary>

matches: Optional\[List\[Match]]

Array of vectors matched by the search

</summary>

id: Optional\[str]

Identifier for a Vector

maxLength64

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

metadata: Optional\[object]

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20metadata">Link to this property</a>

namespace: Optional\[str]

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20namespace">Link to this property</a>

score: Optional\[float]

The score of the vector according to the index’s distance metric

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20score">Link to this property</a>

values: Optional\[List\[float]]

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)>)

<details>

<summary>

class IndexUpsertResponse: …

</summary>

mutation\_id: Optional\[str]

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert_response%20%3E%20(schema)>)

<details>

<summary>

class IndexDeleteByIDsResponse: …

</summary>

mutation\_id: Optional\[str]

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_by_ids_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_by_ids_response%20%3E%20(schema)>)

<details>

<summary>

class IndexInfoResponse: …

</summary>

dimensions: Optional\[int]

Specifies the number of dimensions for the index

maximum1536

minimum1

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)%20%3E%20(property)%20dimensions">Link to this property</a>

processed\_up\_to\_datetime: Optional\[datetime]

Specifies the timestamp the last mutation batch was processed as an ISO8601 string.

formatdate-time

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)%20%3E%20(property)%20processedUpToDatetime">Link to this property</a>

processed\_up\_to\_mutation: Optional\[str]

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)%20%3E%20(property)%20processedUpToMutation">Link to this property</a>

vector\_count: Optional\[int]

Specifies the number of vectors present in the index

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)%20%3E%20(property)%20vectorCount">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)>)

<details>

<summary>

class IndexListVectorsResponse: …

</summary>

count: int

Number of vectors returned in this response

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

is\_truncated: bool

Whether there are more vectors available beyond this response

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20isTruncated">Link to this property</a>

total\_count: int

Total number of vectors in the index

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20totalCount">Link to this property</a>

<details>

<summary>

vectors: List\[Vector]

Array of vector items

</summary>

id: str

Identifier for a Vector

maxLength64

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20vectors%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20vectors">Link to this property</a>

cursor\_expiration\_timestamp: Optional\[datetime]

When the cursor expires as an ISO8601 string

formatdate-time

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20cursorExpirationTimestamp">Link to this property</a>

next\_cursor: Optional\[str]

Cursor for the next page of results

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20nextCursor">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)>)

#### VectorizeIndexesMetadata Index

##### [List Metadata Indexes](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/subresources/metadata_index/methods/list)

vectorize.indexes.metadata\_index.list(strindex\_name, MetadataIndexListParams\*\*kwargs) -> [MetadataIndexListResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/metadata\_index/list

##### [Create Metadata Index](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/subresources/metadata_index/methods/create)

vectorize.indexes.metadata\_index.create(strindex\_name, MetadataIndexCreateParams\*\*kwargs) -> [MetadataIndexCreateResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/metadata\_index/create

##### [Delete Metadata Index](https://developers.cloudflare.com/api/python/resources/vectorize/subresources/indexes/subresources/metadata_index/methods/delete)

vectorize.indexes.metadata\_index.delete(strindex\_name, MetadataIndexDeleteParams\*\*kwargs) -> [MetadataIndexDeleteResponse](<https://developers.cloudflare.com/api/python/resources/vectorize#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_delete_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/metadata\_index/delete

##### ModelsExpand Collapse

<details>

<summary>

class MetadataIndexListResponse: …

</summary>

<details>

<summary>

metadata\_indexes: Optional\[List\[MetadataIndex]]

Array of indexed metadata properties.

</summary>

<details>

<summary>

index\_type: Optional\[Literal\["string", "number", "boolean"]]

Specifies the type of indexed metadata property.

</summary>

One of the following:

"string"

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20indexType%20%3E%20(member)%200">Link to this property</a>

"number"

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20indexType%20%3E%20(member)%201">Link to this property</a>

"boolean"

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20indexType%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20indexType">Link to this property</a>

property\_name: Optional\[str]

Specifies the indexed metadata property.

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20propertyName">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)>)

<details>

<summary>

class MetadataIndexCreateResponse: …

</summary>

mutation\_id: Optional\[str]

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_create_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_create_response%20%3E%20(schema)>)

<details>

<summary>

class MetadataIndexDeleteResponse: …

</summary>

mutation\_id: Optional\[str]

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_delete_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_delete_response%20%3E%20(schema)>)