> ## 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.

# Delete an Encrypted Index

<Warning>This action is irreversible. Proceed with caution.</Warning>

To delete an existing encrypted index, you can [load it](./load-index) and then call the `delete_index()` method.

<CodeGroup>
  ```python Python icon="python" theme={null}
  import cyborgdb_core as cyborgdb

  # Create a client (use the same backing store the index was created with)
  client = cyborgdb.Client(storage_config=cyborgdb.StorageConfig.disk("/tmp/cyborgdb"))

  # Provide the SAME 32-byte key used when the index was created.
  # Retrieve it from your KMS/secret store — a fresh random key here would fail the load.
  index_key = bytes.fromhex("...")  # the 64-char hex of your existing 32-byte index key

  # Load the encrypted index
  index = client.load_index("my_index", index_key)

  # Delete the index (index_key is required)
  index.delete_index(index_key=index_key)
  ```
</CodeGroup>

## API Reference

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

<CardGroup cols={2}>
  <Card title="Python API Reference" href="../../python/encrypted-index/delete-index" icon="python">
    API reference for `delete_index()` in Python
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.