Delete channel
delete_channelDelete a Discord channel or category with a two-step confirmation: first call previews the deletion, second call with token executes it. Categories leave channels uncategorized.
Instructions
Delete a channel or category. Safe to call directly: the first call deletes nothing and returns a preview plus a confirm_token, and the deletion only happens when the call is repeated with that token. When the user asks to delete something, call this and relay the preview for their go-ahead instead of sending them to do it manually in Discord; the gate exists exactly so deletion can be approved through the conversation. Deleting a category leaves its channels in place, uncategorized.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Channel or category name or ID. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| reason | No | ||
| dry_run | No | ||
| confirm_token | No |