Skip to content

Instantly share code, notes, and snippets.

@zackproser
Created June 6, 2024 11:17
Show Gist options
  • Save zackproser/0125bb31173400fecf2b9f15525feba1 to your computer and use it in GitHub Desktop.
Save zackproser/0125bb31173400fecf2b9f15525feba1 to your computer and use it in GitHub Desktop.
Pinecone delete with ID prefixes
for ids in index.list(prefix='order1#', namespace='orders'):
print(ids) # ['order1#chunk1', 'order1#chunk2', 'order1#chunk3']
index.delete(ids=ids, namespace=namespace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment