This action is irreversible. Proceed with caution.
To delete an existing encrypted index, you can connect to it and then call the delete_index() method.
from cyborgdb import Client

# Create a client
client = Client('http://localhost:8000', 'your-api-key')

# Provide the same index key and config used when creating the index
index_key = your_existing_32_byte_key  # Must be the same key used originally
index_config = your_existing_index_config  # Must match original config

# Connect to the existing index
index = client.create_index("my_index", index_key, index_config)

# Delete the index
index.delete_index()

API Reference

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