---
title: "Delete archived team"
method: DELETE
path: "/api/admin/teams/{id}"
tags: ["Admin"]
---

# Delete archived team

`DELETE /api/admin/teams/{id}`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/admin/teams/{id}`
- Auth: API key in cookie `hk_token`

Permanently deletes an archived non-default team and removes its per-tenant analytics database directory.

## Path parameters

- `id` string, uuid, required

## Response `200`

Delete archived team response

- AdminDeleteTeamResponse
  - `name` string
  - `status` string
  - `team_id` string, uuid

## Other responses

- `400`: Archive the team first, and ensure it has no sites
- `404`: Team not found

---

[API](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api.md) · [All operations](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/revisions/bb2df36ab2a4?raw)
