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.