API referenceSections

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

DELETE /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

NameInTypeRequiredDescription
tidpathstringrequired
cidpathstringrequired
confirmquerystringrequired

The tenant's name, typed

X-CSRF-Tokenheaderstringoptional

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

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required