You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Delete an Index of Weaviate with docarray API #1735
I have searched Google & GitHub for similar requests and couldn't find anything
I have read and followed the docs and still think this feature is missing
Description
Hi everyone,
I started using docarray with Weaviate. My question is about clearing index of Weaviate by using the docarray API. I have set up a collection as shown at the below code. It is a test collection, and want to clear or remove this index after testing. How can I clear/remove it with the docarray library? Thanks a lot!
For the moment you can check the execute_query method where u can pass ur custom Weaviate query to delete ur index (check Weaviate docs for that). On the othrr hand we can try to add a more native API for this method, something like delete or clear
I have searched Google & GitHub for similar requests and couldn't find anything
I have read and followed the docs and still think this feature is missing
Description
Hi everyone,
I started using docarray with Weaviate. My question is about clearing index of Weaviate by using the docarray API. I have set up a collection as shown at the below code. It is a test collection, and want to clear or remove this index after testing. How can I clear/remove it with the docarray library? Thanks a lot!
Activity
JoanFM commentedon Jul 30, 2023
For the moment you can check the
execute_querymethod where u can pass ur custom Weaviate query to delete ur index (check Weaviate docs for that). On the othrr hand we can try to add a more native API for this method, something likedeleteorclearhsm207 commentedon Jul 31, 2023
@isspek do you mean you want to delete a class in weaviate but using the docarray api?
isspek commentedon Jul 31, 2023
Hi @hsm207, yes correct. I'd like to do that with the docarray api.
hsm207 commentedon Jul 31, 2023
@isspek noted. That is not possible at the moment. Right now, only delete by document ids is supported e.g:
JoanFM commentedon Jul 31, 2023
u could use the
execute_querymethodsamedovzaur commentedon Aug 7, 2023
Instead of deleting that can we update it into an empty string? Just asking :)