---
title: "Delete the team entry"
method: DELETE
path: "/v2/teams/{team_id}"
tags: ["v2"]
---

# Delete the team entry

`DELETE /v2/teams/{team_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v2/teams/{team_id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/haidra-org/apis/ai-horde/docs/v2/teams/:team_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Only the team's creator or a horde moderator can use this endpoint.
This action is unrecoverable!

## Headers

- `Client-Agent` string
- `apikey` string
- `X-Fields` string, mask

## Response `200`

Delete Team

- DeletedTeam
  - `deleted_id` string: The ID of the deleted team.
  - `deleted_name` string: The Name of the deleted team.

## Other responses

- `401`: Invalid API Key
- `403`: Access Denied
- `404`: Team Not Found

---

[API](https://skmtc.dev/haidra-org/apis/ai-horde.md) - [All operations](https://skmtc.dev/haidra-org/apis/ai-horde/llms.txt) - [OpenAPI document](https://skmtc.dev/haidra-org/apis/ai-horde/revisions/dfeb0bedd935?raw)
