GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Delete an Index of Weaviate with docarray API · Issue #1735 · docarray/docarray

This repository was archived by the owner on Sep 9, 2026. It is now read-only.
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

Copy link
Copy link
Open
Open
Delete an Index of Weaviate with docarray API#1735
Copy link

Description

@isspek
isspek
opened on Jul 30, 2023
Issue body actions

Initial Checks

  • 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!

runtimeconfig = WeaviateDocumentIndex.RuntimeConfig(batch_config=batch_config)
store = WeaviateDocumentIndex[MyIndex](
   host="http://localhost:8080", index_name="MyIndex"
)
store.configure(runtimeconfig) 

Affected Components

  • Vector Database / Index
  • Representing
  • Sending
  • storing
  • multi modal data type

Activity

  1. JoanFM
    added this to DocArray backlogon Jul 30, 2023
  2. JoanFM
    moved this to Todo/Bug in DocArray backlogon Jul 30, 2023
  3. JoanFM commented on Jul 30, 2023

    @JoanFM
    JoanFM
    on Jul 30, 2023
    Member
    More actions

    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

  4. hsm207 commented on Jul 31, 2023

    @hsm207
    hsm207
    on Jul 31, 2023
    Contributor
    More actions

    @isspek do you mean you want to delete a class in weaviate but using the docarray api?

  5. isspek commented on Jul 31, 2023

    @isspek
    isspek
    on Jul 31, 2023
    Author
    More actions

    Hi @hsm207, yes correct. I'd like to do that with the docarray api.

  6. hsm207 commented on Jul 31, 2023

    @hsm207
    hsm207
    on Jul 31, 2023
    Contributor
    More actions

    @isspek noted. That is not possible at the moment. Right now, only delete by document ids is supported e.g:

    del test_index[["1", "2"]]
  7. JoanFM commented on Jul 31, 2023

    @JoanFM
    JoanFM
    on Jul 31, 2023
    Member
    More actions

    u could use the execute_query method

  8. samedovzaur commented on Aug 7, 2023

    @samedovzaur
    samedovzaur
    on Aug 7, 2023
    More actions

    Initial Checks

    • 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!

    runtimeconfig = WeaviateDocumentIndex.RuntimeConfig(batch_config=batch_config)
    store = WeaviateDocumentIndex[MyIndex](
       host="http://localhost:8080", index_name="MyIndex"
    )
    store.configure(runtimeconfig) 

    Affected Components

    • Vector Database / Index
    • Representing
    • Sending
    • storing
    • multi modal data type

    Instead of deleting that can we update it into an empty string? Just asking :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • DocArray backlog
      Status
      Todo/Bug
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.