API referenceSections

Delete an archived package and its plan for good, once no account has it

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/packages/{ref}/permanent

Delete an archived package and its plan for good, once no account has it (ADR 0130)

Permissions: plan.manage. Refused with PLAN_NOT_ARCHIVED or PLAN_IN_USE. Emits package.deleted.

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

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

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.