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

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

Deletes the current index and all its associated data from the CyborgDB service.

```python theme={null}
index.delete_index()
```

### Returns

`None`

### Exceptions

<AccordionGroup>
  <Accordion title="Error">
    * Throws if the API request fails due to network connectivity issues.
    * Throws if authentication fails (invalid API key).
    * Throws if there are internal server errors preventing the deletion.
  </Accordion>

  <Accordion title="Index Errors">
    * Throws `ValueError` if the index does not exist on the server (the service returns `404`).
    * Throws if the encryption key is invalid for the specified index.
  </Accordion>
</AccordionGroup>

### Example Usage

```python theme={null}
# Delete the index
index.delete_index()
print("Index deleted successfully.")
```
