-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Closed
Labels
Description
Description
Currently delete_collections is implemented in weaviate hook which deletes all or specific collections if collection_names are provided.
Delete collections by_property method would allow users to delete by providing the property names and deletion of objects that match a set of criteria.
This feature was added in Weaviate v1.21.
example:
collection_names = ["collection_a", "collection_b", "collection_c"]
by_property = ["question", "answer", "category"]
weaviate_hook.delete_collections(collection_names=collection_names, by_property=by_property)
Use case/motivation
By adding the delete_by_property method, users can delete collections based on various filtering criteria, making data management more targeted and efficient.
Related issues
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct