Deleting all vectors from a namespace

I am using javascript and trying to delete all vectors in a namespace and i have tried using this code, “await index.delete1(, true, “example-namespace”);” as specified in the Delete vectors by namespace part of the documentation and i get this error “[ErrorWithoutStackTrace: No ids provided]”, anyone know why this is and how to prevent it ?

I found out the solution, it is

await index.delete1({ deleteAll: true, namespace, });

i got this from the pinecone github repo

Alternatively, you can do with Postman a DELETE request, including an Api-Key field in the header with your key,

using this URL:

https://openai-922c19e.svc.us-west1-gcp.pinecone.io/vectors/delete?deleteAll=true&namespace=YOUR_NAMESPACE

In bold should be replaced with your values.

To be very clear: when upserting vectors without specifying a namespace they go to the default namespace: ‘’.

If you need to delete all these vectors then, using javascript, you need to do this:

await index.delete1({ deleteAll: true, namespace: ‘’ });

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.