---
title: "Delete a site"
method: DELETE
path: "/api/v1/sites/{id}"
tags: ["Sites"]
---

# Delete a site

`DELETE /api/v1/sites/{id}`

## Request

- Base URL: `https://app.mondovo.com`
- URL: `https://app.mondovo.com/api/v1/sites/{id}`
- Auth: HTTP bearer

Soft-deletes a draft site. Published sites cannot be deleted via the API — unpublish first from the Mondovo dashboard. Requires scope `sites:delete`.

## Response `200`

Deleted.

- object
  - `deleted` boolean, required
  - `site_id` string, uuid, required

## Other responses

- `400`: `site_published` — the site is live; unpublish before deleting.
- `401`: Authentication failed. Error codes: `invalid_api_key` (missing/unknown key), `key_revoked`, `key_expired`.
- `403`: Authenticated but not allowed. Error codes: `addon_required` (the API key’s workspace no longer has the Agency add-on — checked on every request, not just at key creation) and `missing_scope` (the key lacks the scope this endpoint needs).
- `404`: `site_not_found`.
- `429`: Rate limit exceeded (`rate_limit_exceeded`). The body includes `retry_after_seconds`, `limit`, and `window` ("minute" or "hour"); a `Retry-After` header is also set.
- `500`: Unexpected server error (`internal_error`). Safe to retry.

---

[API](https://skmtc.dev/mondovo/apis/mondovo-public-api.md) · [All operations](https://skmtc.dev/mondovo/apis/mondovo-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mondovo/apis/mondovo-public-api/revisions/1baa3e2865ba?raw)
