Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt

Use this file to discover all available pages before exploring further.

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 cyborgdb_core as cyborgdb
import secrets

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

# Get your API key
api_key = "your_api_key_here"  # Replace with your actual API key

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

# Provide the index key used when creating the index
index_key = secrets.token_bytes(32)

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

# Delete the index
index.delete_index()

API Reference

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

Python API Reference

API reference for delete_index() in Python

C++ API Reference

API reference for DeleteIndex() in C++