skip to Main Content

I am facing a challenge when it comes to deleting vectors in a namespace in pinecone. I am using javascript and trying to delete all vectors in a namespace,I get this error “[ErrorWithoutStackTrace: No ids provided]”, could anyone be knowing why this is and how to solve it? thanks in advance

I have tried using this code, “await index.delete1([ ], true, “example-namespace”);” as specified in the Delete vectors by namespace part of the pinecone documentation but i get the error mentioned above,

2

Answers


  1. Chosen as BEST ANSWER

    I found a solution:

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

    I got this from the Pinecone GitHub repo.


  2. const index = pinecone.Index("your_index_name");
    await index.delete1({
      deleteAll: true,
      namespace: "your_namespace_name"
    });
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search