Delete an ended customer of this seller for good
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/customers/{cid}/permanent may answer 202Delete an ended customer of this seller for good (ADR 0130)
Permissions: plan.manage on the seller (and server.manage with include_kept); the customer must be the seller's or below it. Users who belonged to this customer only are deleted with it; the audit log stays. Emits account.deleted.
Authentication: API key (Authorization: Bearer …) or session cookie __Host-panel_session.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
cid | path | string | required | |
confirm | query | string | required | The customer's name, typed |
include_kept | query | boolean | optional | Also remove now the deleted websites still kept and the backups (needs server.manage on the seller); answered 202 until they are gone |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Responses
202 Deleting: kept data is being removed; the account goes once it is
Content type: application/json
statestring requiredAllowed values:"deleting"What an ended account still has, and so what stands between it and a permanent delete (ADR 0130)
liveinteger requiredWebsites, databases, mail domains, DNS zones, caches still there or being removed, and unfinished jobs
kept_sitesarray<object> requiredsite_idstring requiredhostnamestring requiredstatestring requiredAllowed values:"kept""purging"purge_afterstring (date-time) required
backupsinteger requiredbackups_untilstring (date-time) | null requiredWhen the backups go by themselves; null: kept with no end
customersinteger requiredchildreninteger requiredserversinteger required
Example
{
"state": "deleting",
"remains": {
"live": 0,
"kept_sites": [
{
"site_id": "string",
"hostname": "string",
"state": "kept",
"purge_after": "2026-01-01T00:00:00Z"
}
],
"backups": 0,
"backups_until": "2026-01-01T00:00:00Z",
"customers": 0,
"children": 0,
"servers": 0
}
}204 Deleted for good
default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required