Skip to content

Add delete_by_property method in weaviate hook  #42565

@harjeevanmaan

Description

@harjeevanmaan

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions