Delete a message
delete_messageDeletes one Discord message, including the bot's own or any message with Manage Messages; returns a dry run unless confirm is true, and bulk deletion handles multiple messages.
Instructions
Deletes one message (the bot's own, or anyone's with Manage Messages). Destructive: returns a dry run unless confirm is true. For many messages use bulk_delete_messages (moderation pack).
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": {
"message": "<message>"
},
"name": "delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Instead of channel: a user (ID, <@mention> or name) whose DM channel to use. | |
| guild | No | Server ID or name. Optional if DISCORD_GUILD_ID is set or the bot is in one server. | |
| reason | No | ||
| channel | No | Channel or thread: ID, <#mention>, link, or name. Archived threads by ID or link. | |
| confirm | No | Set to true to actually do it. Without it, nothing changes and a dry run is returned. | |
| message | Yes | Message ID or message link (https://discord.com/channels/...). With a link, channel is optional. |