Skip to main content

Delete a Site

Permanently deletes a site and all its files from storage.
DELETE /api/v1/publish/:slug

Path Parameters

slug
string
required
The site slug to delete (e.g., bright-canvas-a7k2).

Headers

HeaderRequiredDescription
AuthorizationYesBearer sl_live_...

Example

curl -X DELETE https://supalink.dev/api/v1/publish/bright-canvas-a7k2 \
  -H "Authorization: Bearer sl_live_your_key_here"

Response (200)

{
  "slug": "bright-canvas-a7k2",
  "deleted": true
}
This action is permanent. The site, all its versions, and all files are deleted from storage. The slug is retired and cannot be reused.

Errors

StatusCodeReason
401UNAUTHORIZEDInvalid or missing API key
404NOT_FOUNDSite not found or not owned by this user