This action is irreversible. Proceed with caution.

To delete an exiting encrypted index, you can load it and then call the delete_index() method.

import cyborg_vector_search_py as cvs

# Using `memory` storage for this example
index_location = cvs.DBConfig("memory") 
config_location = cvs.DBConfig("memory")

# Create a client
client = cvs.Client(index_location, config_location)

# Provide the index key used when creating the index
# Example key (32 bytes)
index_key = bytes(32)

# Create an encrypted index
index = client.load_index("my_index", index_key)

# Delete the index
index.delete_index()

API Reference

For more information on deleting encrypted indexes, refer to the API reference: