---
title: "Delete archived team REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Delete archived team, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apiadminteamsid/"
---

# Delete archived team REST API

DELETE

/api/admin/teams/{id}

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/admin/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';
const options = {method: 'DELETE', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request DELETE \
  --url http://127.0.0.1:25737/api/admin/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
  --cookie hk_token=<hk_token>
```

-

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

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

## Responses

### 200

Delete archived team response

application/json

object

**name**

string

**status**

string

**team_id**

string format: uuid

##### Examplegenerated

```
{
  "name": "example",
  "status": "example",
  "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
```

### 400

Archive the team first, and ensure it has no sites

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

### 404

Team not found

application/json

object

**message**

string

##### Examplegenerated

```
{
  "message": "example"
}
```

[Previous List all teams](https://hitkeep.com/api/operations/apiadminteams/)[Next Archive team (admin)](https://hitkeep.com/api/operations/apiadminteamsidarchive/)
