# Delete team

Deletes an empty team and its unused budget. Console session or API key with members:manage; a team with members, agents or recorded spend can't be deleted (409).

`DELETE /v1/teams/{team_id}`

Deletes an empty team and its unused budget. Console session or API key with members:manage; a team with members, agents or recorded spend can't be deleted (409).

Requires permission `members:manage`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `team_id` | path | yes | Team id (team_...). |

## Responses

- **200**: Success.
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.
- **404**: The resource does not exist or belongs to another organization.
- **409**: Conflicts with the current state, for example a reused Idempotency-Key or an illegal state change.

Example 200 response:

```json
{
  "ok": true,
  "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w"
}
```
