This page shows you how to delete records from an index namespace.Documentation Index
Fetch the complete documentation index at: https://docs.pinecone.io/llms.txt
Use this file to discover all available pages before exploring further.
Delete records by ID
Since Pinecone records can always be efficiently accessed using their ID, deleting by ID is the most efficient way to remove specific records from a namespace.To remove records from the default namespace, specify
"__default__" as the namespace in your request.Delete records by metadata
To delete records from a namespace based on their metadata values, pass a metadata filter expression to thedelete operation. This deletes all records in the namespace that match the filter expression.
For example, the following code deletes all records with a genre field set to documentary from namespace example-namespace:
Delete all records in a namespace
To delete all of the records in a namespace but not the namespace itself, provide anamespace parameter and specify the appropriate deleteAll parameter for your SDK. To target the default namespace, set namespace to "__default__".
Delete an entire namespace
To delete an entire namespace and all of its records, see Delete a namespace.Delete an entire index
To remove all records from an index, delete the index and recreate it.Delete limits
Delete by ID limits:| Metric | Limit |
|---|---|
| Max IDs per request | 1000 IDs |
| Max request rate | 5000 records per second per index or namespace |
| Metric | Limit |
|---|---|
| Max request rate | 5 requests per second per namespace 500 requests per second per index |