Created
June 6, 2024 11:17
-
-
Save zackproser/0125bb31173400fecf2b9f15525feba1 to your computer and use it in GitHub Desktop.
Pinecone delete with ID prefixes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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