delete_messages
Delete up to 100 Discord messages at once, with older messages removed one by one. Preview with dry-run before confirming this permanent action.
Instructions
Delete one or more messages (up to 100). Messages older than 14 days are deleted one by one.
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": "<channel>",
"message_ids": "<message_ids>"
},
"name": "delete_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Use this bot (name or id) instead of choosing automatically | |
| reason | No | Reason shown in the server's audit log | |
| server | No | Server name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set. | |
| channel | Yes | Channel or thread name, id, or message link | |
| confirm | No | Must be true to really do this permanent action; without it you get a preview | |
| dry_run | No | Show the requests that would be made without changing anything | |
| message_ids | Yes |