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

# Delete site

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

## Request

- Base URL: `https://slatehut.com`
- URL: `https://slatehut.com/api/v1/sites/{subdomain}`
- Auth: HTTP bearer

Permanently deletes the site and its data. Any custom domains attached to the site are removed from the hosting project on Vercel before the database row is deleted (same as removing each domain via `DELETE …/domains/{hostname}`).

## Response `200`

Deleted

- object
  - `success` boolean

## Other responses

- `401`: Missing or invalid credentials
- `403`: Not allowed for this resource
- `404`: Resource not found

---

[API](https://skmtc.dev/slatehut/apis/slatehut-api.md) · [All operations](https://skmtc.dev/slatehut/apis/slatehut-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slatehut/apis/slatehut-api/revisions/32dae277550c?raw)
