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:

In bold should be replaced with your values.