
# Undeploy a site

Take the site offline. All content stays in the workspace, and a later [deploy](/api/deployments/post-deployments) brings the site back. The undeploy is recorded in build history attributed to the token.

```sh
DELETE https://sitepaste.com/api/v1/public/sites/{siteId}/deployments/live
```

Requires the `deploy` scope.

Once the site is down, [GET /sites/{siteId}/deployments/live](/api/deployments/get-deployments-live) answers 404.

## Usage

```bash
curl -X DELETE "https://sitepaste.com/api/v1/public/sites/default/deployments/live" \
  -H "Authorization: Bearer $TOKEN"
```

## Authorizations

| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token (`Authorization: Bearer sp_...`). Created in the dashboard under Account > Tokens. See [authentication](/api/authentication). |

## Response

204 No Content.

A site with no live deployment, whether never deployed or already taken down, answers 404, so a repeated DELETE answers 404, not a second 204.