> ## Documentation Index
> Fetch the complete documentation index at: https://docs.athina.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Dataset

> You can delete a dataset by ID via the Python SDK.

Import the required classes and initialize Athina API key.

```python
import os
from athina_client.datasets import Dataset
from athina_client.keys import AthinaApiKey

AthinaApiKey.set_key(os.getenv('ATHINA_API_KEY'))
```

### Delete Dataset By ID

```python
# Delete a dataset by ID
try:
    DATASET_ID = "your_dataset_id"
    dataset = Dataset.delete_dataset_by_id(dataset_id=DATASET_ID)
except Exception as e:
    print(f"Failed to get dataset: {e}")
```
