---
title: "Delete a team (cascades to rule, members, tracker)"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › AgentTeams

`DELETE /api/agent-teams/{teamId}`

## Code samples

### cURL

```bash
curl --request DELETE \
  --url https://api.channelautomation.com/api/agent-teams/%7BteamId%7D
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/agent-teams/%7BteamId%7D';
const options = {method: 'DELETE'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/agent-teams/%7BteamId%7D"

response = requests.delete(url)

print(response.text)
```


Source: https://developer.channelautomations.com/api/delete-api-agent-teams-team-id/index.md
