This action is irreversible. Proceed with caution.
To delete an exiting encrypted index, you can load it and then call the delete_index() method.
Copy
Ask AI
# Import cyborgdb_core or cyborgdb_lite:import cyborgdb_core as cyborgdbimport cyborgdb_lite as cyborgdb# Using `memory` storage for this exampleindex_location = cyborgdb.DBConfig("memory") config_location = cyborgdb.DBConfig("memory")# Create a clientclient = cyborgdb.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 indexindex = client.load_index("my_index", index_key)# Delete the indexindex.delete_index()