diff --git a/_includes/code/howto/manage-data.collections.py b/_includes/code/howto/manage-data.collections.py index 8bce8eff6..876889084 100644 --- a/_includes/code/howto/manage-data.collections.py +++ b/_includes/code/howto/manage-data.collections.py @@ -678,6 +678,10 @@ # START DeleteCollection # delete collection "Article" - THIS WILL DELETE THE COLLECTION AND ALL ITS DATA client.collections.delete("Article") # Replace with your collection name +# note: you can also delete multiple collections at once +# client.collections.delete(["Article", "Category"]) +# or all collections of a cluster +# client.collections.delete_all() # END DeleteCollection # ======================================== diff --git a/_includes/schema-delete-class.mdx b/_includes/schema-delete-class.mdx index ae6131aed..fecac20b4 100644 --- a/_includes/schema-delete-class.mdx +++ b/_includes/schema-delete-class.mdx @@ -46,6 +46,8 @@ client.schema.delete_class("Article") # Replace with your class name ```ts // delete collection "Article" - THIS WILL DELETE THE COLLECTION AND ALL ITS DATA await client.collections.delete('Article') +// you can also delete all collections of a cluster +// await client.collections.deleteAll() ``` diff --git a/developers/weaviate/manage-data/delete.mdx b/developers/weaviate/manage-data/delete.mdx index f1f9eb5fa..17dff6fc7 100644 --- a/developers/weaviate/manage-data/delete.mdx +++ b/developers/weaviate/manage-data/delete.mdx @@ -381,6 +381,8 @@ client.batch().objectsBatchDeleter() +## Delete All objects +Look into Delete a Collection ## Optional parameters