Delete a site
Takes the site offline on every address now, then deletes its repository, builds and media within minutes. Cannot be undone: export it first if you may need it. Requires sites:publish and a workspace admin. With confirm_name (the site's name or slug), the call is refused unless it matches, and a published site is refused unless delete_published is true; the CLI and agents always send it.
DELETE/v1/sites/{site_id}
Requires sites:publish and a workspace admin. It answers 202: the deletion finishes within minutes.
This cannot be undone. Export the project first if you may need it.
Send confirm_name, the site’s name or slug, to have the server check it is the site you mean: a different value is refused with invalid_parameter. With confirm_name, a published site is refused with 409 conflict (details.reason site_published) unless delete_published is true: unpublish it first, or say you mean it. The CLI and the MCP tool delete_site always send both checks.
Authorizations
Authorizationbearerin headerrequiredPath parameters
site_idstringrequiredThe site's id, or its slug (the address before .atelier201.page).
Query parameters
confirm_namestringlength: 1–200 charsThe site's name (or slug), typed back: proves this is the site meant. Deleting cannot be undone.
delete_publishedbooleanRequired, as true, to delete a site that is published: it goes offline for every visitor at once. Otherwise unpublish it first.
Response
Delete a site
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_credits
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: conflict, result_not_ready, idempotency_key_reused
errorobjectrequiredrequest_idstringrequiredPossible codes: result_expired
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large_for_plan
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequiredPossible codes: service_unavailable
errorobjectrequiredrequest_idstringrequired