Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link delete collection and add delete all reference #2704

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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