Delete an empty plain child tenant 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}/child-tenants/{cid}Delete an empty plain child tenant for good (ADR 0130 rules; R7 open issue 11)
Permissions: tenant.create on this tenant; the tenant must be directly below it and neither a customer account (TENANT_IS_ACCOUNT) nor a reseller. Refused with ACCOUNT_NOT_EMPTY, ACCOUNT_HAS_KEPT_DATA (no early removal here), ACCOUNT_HAS_CUSTOMERS (a tenant below it), ACCOUNT_HAS_SERVERS. Users who belonged to it only go with it; the audit log stays. Emits tenant.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 tenant's name, typed |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Responses
204 Deleted for good
default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required