Bulk delete messages
bulk_delete_messagesDelete up to 100 recent Discord messages at once, with optional filters for author or text. Preview the exact list first, then confirm to remove.
Instructions
Delete many recent messages at once (2 to 100), optionally filtered by author or text. Discord cannot bulk delete messages older than 14 days. Safe to call directly: the first call returns the exact list it would remove plus a confirm_token; repeating the call with the token deletes them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many recent messages to scan. Default 50. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| channel | Yes | Channel name or ID. | |
| dry_run | No | ||
| contains | No | Only delete messages containing this text. | |
| from_author | No | Only delete messages whose author name matches this. | |
| confirm_token | No |