Unpublish a site
DELETE
/ingest/sites/{path}
const url = 'https://example.com/ingest/sites/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/ingest/sites/example \ --header 'Authorization: Bearer <token>'Requires the unpublish capability on the target group. Soft-deletes
the site: takes it offline immediately and sets deleted_at. Files are
retained in a quarantine directory until the background purge removes
them after the configured TTL (default 30 days). Re-publishing the same
slug before the deadline restores the site.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”path
required
string
Full site path — group segments (0–2) plus the slug, e.g. claude/app or demo.
Responses
Section titled “ Responses ”Unpublished (soft-deleted).
Missing or invalid credentials.
Media typeapplication/json
object
error
required
string
Examplegenerated
{ "error": "example"}Authenticated, but not permitted for this target/capability.
Media typeapplication/json
object
error
required
string
Examplegenerated
{ "error": "example"}No such site, key, or connection.
Media typeapplication/json
object
error
required
string
Examplegenerated
{ "error": "example"}