---
title: "Delete a Site"
method: DELETE
path: "/v1/sites/{site_id}"
tags: ["Sites"]
---

# Delete a Site

`DELETE /v1/sites/{site_id}`

## Request

- Base URL: `https://api.dexto.ai`
- URL: `https://api.dexto.ai/v1/sites/{site_id}`
- Auth: HTTP bearer

Delete a Site of the Cloud project with its deployments, addresses and data. Its slug is free again for anyone to deploy. A Function it mounts is not deleted. Needs sites:write and the Site's creator, an Owner or an Admin; a Site Dexto took down can't be deleted.

## Path parameters

- `site_id` string, required

## Response `200`

Successful response.

- object
  - `deleted` true, required
  - `id` string, uuid, required
  - `object` 'site', required

## Other responses

- `400`: Invalid JSON or request fields.
- `401`: Missing or invalid API key.
- `402`: The account has insufficient credits.
- `403`: The account cannot perform this operation.
- `404`: The requested resource was not found.
- `409`: The request conflicts with existing resource state.
- `429`: The account exceeded this operation's request rate.
- `500`: Unexpected Dexto failure.
- `502`: The upstream model provider failed.
- `503`: A required Dexto service is temporarily unavailable.

---

[API](https://skmtc.dev/dexto/apis/dexto-api.md) - [All operations](https://skmtc.dev/dexto/apis/dexto-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dexto/apis/dexto-api/revisions/47eb880cffa5?raw)
