POST
/
vectors
/
delete
curl --request POST \
     --url https://index_name-project_id.svc.environment.pinecone.io/vectors/delete \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "deleteAll": "false"
}
'
{}
curl --request POST \
     --url https://index_name-project_id.svc.environment.pinecone.io/vectors/delete \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "deleteAll": "false"
}
'

Authorizations

Api-Key
string
header
required

An API Key is required to call Pinecone APIs. Get yours at https://app.pinecone.io/.

Body

application/json

The request for the Delete operation.

ids
string[]

Vectors to delete.

Example:
["id-0", "id-1"]
deleteAll
boolean
default:false

This indicates that all vectors in the <a href='https://docs.pinecone.io/docs/namespaces'>namespace</a> should be deleted. Not supported by projects on the gcp-starter environment.

Example:

false

namespace
string

The <a href='https://docs.pinecone.io/docs/namespaces'>namespace</a> to delete vectors from, if applicable.

Example:

"example-namespace"

filter
object

If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying IDs to delete in the ids param or using delete_all=True. See https://www.pinecone.io/docs/metadata-filtering/. Not supported by projects on the gcp-starter environment.

Response

200
application/json
A successful response.

The response for the Delete operation.