API referenceSections

Delete a terminated account 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}/provisioning/accounts/{ref}/permanent may answer 202

Delete a terminated account for good (ADR 0130)

Permissions: plan.manage (and server.manage with include_kept). Refused with ACCOUNT_NOT_ENDED, ACCOUNT_NOT_EMPTY (retryable), ACCOUNT_HAS_KEPT_DATA. Emits account.deleted. Users who belonged to this account only are deleted with it.

Authentication: API key (Authorization: Bearer …) or session cookie __Host-panel_session.

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
refpathstringrequired

The billing system's own reference: 1 to 64 of A-Z a-z 0-9 . _ : -

  • pattern ^[A-Za-z0-9._:-]{1,64}$
confirmquerystringrequired

The reference, repeated

include_keptquerybooleanoptional

Also remove now the deleted websites still kept and the backups (needs server.manage on the seller); answered 202 until they are gone

Idempotency-Keyheaderstringoptional

Same key and same request within 24 hours: the first answer is replayed (header Idempotent-Replayed: true). Same key, different request: 422 IDEMPOTENCY_KEY_REUSED.

  • max length 255
X-CSRF-Tokenheaderstringoptional

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

  • state string required
    Allowed values: "deleting"
  • remains Remains required

    What an ended account still has, and so what stands between it and a permanent delete (ADR 0130)

    • live integer required

      Websites, databases, mail domains, DNS zones, caches still there or being removed, and unfinished jobs

    • kept_sites array<object> required
      • site_id string required
      • hostname string required
      • state string required
        Allowed values: "kept" "purging"
      • purge_after string (date-time) required
    • backups integer required
    • backups_until string (date-time) | null required

      When the backups go by themselves; null: kept with no end

    • customers integer required
    • children integer required
    • servers integer 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

429 Error

Content type: application/json

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

default Error

Content type: application/json

Fields of Error are shown above.