# delete_group

> The AirBuild MCP tool that deletes a group chat and its whole history for everyone.

Source: https://air.build/docs/mcp-tools/delete_group/

`delete_group` deletes a group chat for everyone: its messages, its members' seats, its picture and its wallpaper. Nothing brings it back. It deletes group chats only: a Project's chat goes with its Project ([delete_project](https://air.build/docs/mcp-tools/delete_project/)), and direct messages are never deleted. To leave a group without deleting it for the others, name yourself in [remove_channel_member](https://air.build/docs/mcp-tools/remove_channel_member/). Any person on the Team can call it, and an archived group can be deleted too.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| No | Yes | Yes |

## Inputs

| Input | Type | Required | Default | What it does |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | Yes | — | The Team, from [list_teams](https://air.build/docs/mcp-tools/list_teams/) |
| `channelId` | string | Yes | — | The group, `grp.<uuid>`, from [list_channels](https://air.build/docs/mcp-tools/list_channels/) |

## Result

| Field | What |
| --- | --- |
| `deleted` | `true` |

```json
{ "deleted": true }
```

## Errors

| Message | When | What to do |
| --- | --- | --- |
| This is a project's channel: rename or delete the project instead. | `channelId` is a Project's chat | Use [delete_project](https://air.build/docs/mcp-tools/delete_project/) to delete the Project |
| A direct message cannot be renamed or deleted. | `channelId` is a direct-message channel | Direct messages stay |
| Channel not found. | The group does not exist in this Team, or it is already deleted | Check with [list_channels](https://air.build/docs/mcp-tools/list_channels/): if it is not there, it is gone |
| Team not found. | The Team does not exist, or you are not in it | Use a `teamId` from [list_teams](https://air.build/docs/mcp-tools/list_teams/) |

The errors every tool can return are on [Server and sign-in](https://air.build/docs/mcp-tools/server/#errors).

## Example

```json
{"name": "delete_group", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "channelId": "grp.00000000-0000-0000-0000-000000000000"}}
```
