Skip to content

Commit

Permalink
link delete collection and add delete all reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanogueira committed Oct 16, 2024
1 parent 4583abd commit 55fa83a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _includes/code/howto/manage-data.collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

# ========================================
Expand Down
2 changes: 2 additions & 0 deletions _includes/schema-delete-class.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
```

</TabItem>
Expand Down
2 changes: 2 additions & 0 deletions developers/weaviate/manage-data/delete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ client.batch().objectsBatchDeleter()
</TabItem>
</Tabs>

## Delete All objects
Look into <a href="/developers/weaviate/manage-data/collections#delete-a-collection">Delete a Collection</a>

## Optional parameters

Expand Down

0 comments on commit 55fa83a

Please sign in to comment.