<!-- https://developers.silktide.com/v1/governance/websites/delete-website | Governance / Websites -->

# Delete a website and everything in it

`DELETE /v1/websites/{websiteId}`

Deletes a website at once, with its sections, results and history. It cannot
be undone.

The response is an empty `201`. The pages and documents the website held go
back to the account's balance. Deleting it again returns `404`.

## Request

### Path parameters

- `websiteId` (integer, required, at least 1): The website.

## Response

Status `201`.
 No body.

## Errors

| Status | Type | When |
| --- | --- | --- |
| 404 | `ModelNotFound` | Nothing with that id exists in the account, or the API key's user cannot see it. |
| 403 | `AccessDenied` | The API key's user cannot admin this website. |
| 401 | `NotLoggedIn` | No API key was sent, or it is not a key for this region. |
| 429 | `TooManyRequests` | Too many requests to this path in five seconds. Retry after the number of seconds in the `Retry-After` header, which `properties.retryAfter` repeats. |
| 503 | - | Silktide is busy. Retry after the number of seconds in the `Retry-After` header. |

## Access

- Permission: Can admin this website
- Plan feature: none
- Edition: Silktide 4 and Silktide 5
- Cost: free
- Stability: stable, since 1.0.0

## Example: Delete a website

```bash
curl -X DELETE "https://api.eu.silktide.com/v1/websites/6" \
  -H "Authorization: silktide token=$SILKTIDE_API_KEY"
```
