Skip to main content
Pinecone Docs
current

Search documentation

Type to search this documentation.

Delete records

Delete records by id or by metadata from a single namespace.

For guidance and examples, see Delete data.

curl
# To get the unique host for an index,
# see https://docs.pinecone.io/guides/manage-data/target-an-index
PINECONE_API_KEY="YOUR_API_KEY"
INDEX_HOST="INDEX_HOST"

curl "https://$INDEX_HOST/vectors/delete" \
  -H "Api-Key: $PINECONE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Pinecone-Api-Version: 2026-07" \
  -d '{
    "ids": [
      "id-1", 
      "id-2"
    ],
    "namespace": "example-namespace"
  }
'

POST /vectors/delete

200
{}
400
{
  "code": 123,
  "message": "<string>",
  "details": [
    {
      "typeUrl": "<string>",
      "value": "<string>"
    }
  ]
}
4XX
{
  "code": 123,
  "message": "<string>",
  "details": [
    {
      "typeUrl": "<string>",
      "value": "<string>"
    }
  ]
}
5XX
{
  "code": 123,
  "message": "<string>",
  "details": [
    {
      "typeUrl": "<string>",
      "value": "<string>"
    }
  ]
}
Api-Keystringrequired

An API Key is required to call Pinecone APIs. Get yours from the console.

X-Pinecone-Api-Versionstringrequired

Required date-based version header

Typestring
Default2026-07
ids?string[]

Vectors to delete.

Typestring[]
deleteAll?boolean

This indicates that all vectors in the index namespace should be deleted. Cannot be combined with ids.

Example: false

Typeboolean
Defaultfalse
namespace?string

The namespace to delete records from, if applicable.

Example: example-namespace

Typestring
filter?object

If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with using delete_all=True. See Delete data.

200 — A successful response.

response?object

The response for the delete operation.

Typeobject
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu