Delete records by ID using the make.com API Call Module

I’m trying to use the make.com API call module to delete and array of Vector ID’s. However, although I’m getting a “200” code the request isn’t deleting the specified vectors.

This is the payload which appears to be correct:

{
“ids”: [
“rec0tjRrtqOb6KK67-1760007122#chunk0001”,
“rec0tjRrtqOb6KK67-1760007122#chunk0002”,
“rec0tjRrtqOb6KK67-1760007122#chunk0003”,
“rec0tjRrtqOb6KK67-1760007122#chunk0004”,
“rec0tjRrtqOb6KK67-1760007122#chunk0005”
],
“namespace”: “__default__
}

URL: https://digeniedemodata-u3lb666.svc.aped-4627-b74a.pinecone.io/vectors/delete

I’ve tried with and without the namespace.

I’ve checked with “Ask AI” and everything appears to be fine.

I can use the “delete” module to delete one record at a time, however, I’m trying to avoid multiple operations/credits.

Although having asked the AI assistant to confirm if this was possible on the free accoount, I’m now perhaps thinking it may not be available to free account users??

Perhaps someone could clarify this for me.

Many thanks

MJ

Hi Martin.

Did you manage to solve this?

I’m interested in knowing more about your use case. We could extend the “Delete a Vector” module to support deleting multiple vectors (and the same for Upsert) but I’ll need an example to convince our dev team.

I didn’t get it work as I would have liked.

I’ve built a “knowledge” base UPSERT scenario in Make.com for a customer service voice agent. The scenario chunks document data before upserting into the database.

So dependent on the size, length of the document being upserted there can be any number of chunks.

Now if that document is amended for whatever reason, I wanted to first delete any relevant chunks associated with it before upserting the new updated document/information.

When I read through the API documents I got the impression that I should be able to delete multiple vectors using an array of ID’s in the body of the http request. As per the example I provided. [Page Not Found]

However, this didn’t work.

So at the moment if I want to delete vectors this has to be done one at a time.

In Make this uses a credit for each vector deletion.

It would be nice to just send a payload of vector id’s and delete the records in one go (one make credit)

Hope that helps…

Hmm. Seems to be working for me.

I’m using the Make an API Call module within the Pinecone app, with the following relevant parameters:

  • URL: /vectors/delete
  • Method: POST
  • Body:
    { “ids”: {{7.json}},
    “namespace”: “apps” }