Delete message
delete_messageDeletes a specific message in a Discord channel using a two-step confirmation process to prevent accidental deletion. Preview first, then confirm with a token.
Instructions
Delete one message. 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. Use this two-step flow to let the user approve through the conversation rather than telling them to delete things by hand in Discord. Supports dry_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Channel name or ID. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| message_id | Yes | ID of the message to delete. | |
| reason | No | Audit log reason. | |
| dry_run | No | ||
| confirm_token | No | Token from a previous preview of this exact deletion. |