I made a workflow to insert a file (chunked) in a Pinecone database, with filename as metadata.
What I would like to do is to be able to delete all chunks of the file if I want to (for instance before I insert a newer version of the file).
Since I’m using the cloud version, I can’t use the LangChain code node.
Is there a way to delete all items having metadata.filename == something in the database?
In the cloud version of Pinecone, I don’t think you can delete items by metadata due to limitations on serverless indexes according to their docs: Delete data - Pinecone Docs but you could try deleting records using their ID prefix instead?