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

# How to delete a site

> Delete a site from the Rebase Platform.

To delete a site you will need to provide its ID. See [here](/api-guides/get-site-info) how to get the sites IDs.

```python Delete site theme={null}
import requests

api_key = "Your API key" # Set your API key
site_id = "a923653c-26f1-1b29-955d-ffde5d182276" # Set the site ID

url = "https://api.rebase.energy/platform/v2/sites/{site_id}"
headers = {'Authorization': api_key, 'Content-Type': 'application/json'}

response = requests.delete(url, headers=headers)
response.raise_for_status()
response = response.json()
```

```python Response example theme={null}
{
    "message": "Site deleted successfully"
}
```
