---
title: "Delete tenant"
method: DELETE
path: "/tenants/{tenant_id}"
tags: ["Tenants"]
---

# Delete tenant

`DELETE /tenants/{tenant_id}`

Permanently deletes the tenant and all child resources (divisions, environments, deployments will be torn down). Requires a resource confirmation code (obtain via PUT /tenants/{tenant_id}/request_code with action `delete_tenant`). Owner-only. Outstanding deployments and billing must be settled first. Session-only: API keys are tenant-scoped and cannot delete tenants.

## Path parameters

- `tenant_id` integer, required

## Query parameters

- `code` string, nullable

## Response `204`

Tenant deleted

## Other responses

- `400` — Active deployments or unpaid invoices exist, or missing/invalid code
- `403` — Not the tenant owner
- `404` — Tenant not found

---

[API](https://skmtc.net/laserdata/apis/laserdata-cloud-core-api.md) · [All operations](https://skmtc.net/laserdata/apis/laserdata-cloud-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/laserdata/laserdata-cloud-core-api/revisions/db81a447bba9/schema)
