# Delete a tenant

> Delete a tenant. It must have no VMs, and no other members or invites.

`DELETE /v1/tenants/{name}`

```bash curl
curl -X DELETE "https://api.shako.dev/v1/tenants/acme" \
  -H "Authorization: Bearer $SHAKO_API_KEY"
```

```python Python
import os

import requests

response = requests.delete(
    "https://api.shako.dev/v1/tenants/acme",
    headers={"Authorization": f"Bearer {os.environ['SHAKO_API_KEY']}"},
)
response.raise_for_status()
print(response.json())
```

```javascript JavaScript
const response = await fetch("https://api.shako.dev/v1/tenants/acme", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.SHAKO_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
```

```json 200
{
  "name": "acme",
  "deleted": true
}
```

Authenticate with `Authorization: Bearer <API key>` on `https://api.shako.dev`. Role: owner, with a key for the account (--account).

## Path parameters

**name** `string` *required*

The tenant's name.

## Response

200 with the names of the path and "deleted": true.

## Behavior

Its credit, secrets, devices and agent memory go. You cannot undo this.

The errors: https://shako.dev/api/errors.md. All the endpoints of Tenants: https://shako.dev/api/tenants.md.
