Delete a Site
Permanently deletes a site and all its files from storage.Path Parameters
string
required
The site slug to delete (e.g.,
bright-canvas-a7k2).Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
DELETE /api/v1/publish/:slug — Permanently delete a site
DELETE /api/v1/publish/:slug
bright-canvas-a7k2).| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer sh_live_... |
curl -X DELETE https://simplehost.dev/api/v1/publish/bright-canvas-a7k2 \
-H "Authorization: Bearer sh_live_your_key_here"
{
"slug": "bright-canvas-a7k2",
"deleted": true
}
| Status | Code | Reason |
|---|---|---|
| 401 | UNAUTHORIZED | Invalid or missing API key |
| 404 | NOT_FOUND | Site not found or not owned by this user |