v1

latestOpenAPI 3.0.3Apache 2.02026-07-1372170520.1 KB
Vector Operations

Delete records

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

For guidance and examples, see Delete data.

post/vectors/delete

Headers

X-Pinecone-Api-Versionstring required

Required date-based version header

Request body

idsstring[]

Vectors to delete.

deleteAllboolean

This indicates that all vectors in the index namespace should be deleted.

namespacestring

The namespace to delete records from, if applicable.

filterobject

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 Delete data.

Example request

{
  "ids": [
    "id-0",
    "id-1"
  ],
  "namespace": "example-namespace"
}

Response

A successful response.

DbDataDeleteResponse required

The response for the delete operation.