channels_delete
Permanently delete a Discord channel or close a DM. Irreversible, so it requires explicit confirmation and is suited for tearing down stale or compromised channels.
Instructions
Purpose: Delete a channel (or close a DM). DESTRUCTIVE - IRREVERSIBLE.
When to use: - Tear down stale or compromised channels.
When NOT to use: - Just hiding from a role → use channels_modify_permissions.
Returns: {deleted, channel_id}.
Security: gated by ConfirmRequired. Pass __confirm:true AND set MCP_DRY_RUN=false to actually delete.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel_id": "<channel_id>"
},
"name": "channels_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| __confirm | No | Set true to authorize this destructive operation. Also requires the server to run with MCP_DRY_RUN=false; otherwise a DRY_RUN_PREVIEW is returned. | |
| channel_id | Yes | Channel to delete (IRREVERSIBLE) | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||