---
search:
  tags:
    - Tenants
    - DELETE
seo:
  description: >-
    Deletes a tenant with its lunas, their data, its versions, keys and secrets.
    This… Reference for the DELETE /_luna/tenants/{tenant} endpoint in the Luna
    API.
sidebar:
  label: Delete a tenant
  badge: DELETE
title: Delete a tenant
type: openapi-operation
---
Deletes a tenant with its lunas, their data, its versions, keys and secrets. This cannot be undone. Deleting a tenant you added to an environment needs `tenants:write`. Deleting an environment's default tenant deletes the environment, and needs `environments:delete`. A project's production environment is deleted with its project.

`DELETE /_luna/tenants/{tenant}`

**Responses**

- `200` — The tenant is deleted, or still being deleted.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "deleted": true
}
```
