channels_delete
channels_delete
Section titled “channels_delete”Category: channels
Delete a channel (or close a DM). DESTRUCTIVE — IRREVERSIBLE.
When to use
Section titled “When to use”- Tear down stale or compromised channels.
When NOT to use
Section titled “When NOT to use”- Just hiding from a role → use
channels_modify_permissions.
| Field | Type | Required | Description |
|---|---|---|---|
channel_id | string | yes | Channel to delete (IRREVERSIBLE) |
audit_reason | string | no | Reason recorded in audit log (X-Audit-Log-Reason header) |
Returns
Section titled “Returns”\{deleted, channel_id\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
deleted | boolean | yes | |
channel_id | string | yes | Discord channel ID (snowflake) |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | yes (__confirm:true required) |