Delete a tenant.
DELETE
/api/admin/tenants/{id}
Code sample: Shell / cURL
curl --request DELETE \ --url https://auth.example.com/api/admin/tenants/example \ --header 'Authorization: Bearer <token>'Queue asynchronous tenant deletion. The tenant is moved out of the active lifecycle immediately and the background deletion job removes tenant data later.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Responses
Section titled “ Responses ”Tenant deletion job accepted.
Media type application/json
object
job_id
required
string
status
required
string
estimated_completion
required
Unix timestamp in seconds.
integer format: int64
key
additional properties
Example
{ "job_id": "018f3f7c-85b0-7c5d-a6b6-1c3a6e6b9e01", "status": "pending", "estimated_completion": 1770007200}