messages_purge
Bulk-delete Discord messages by author, regex content, or time window, with a dry-run preview and batch handling for recent messages.
Instructions
Bulk-delete messages matching filters (author, contains regex, time window). Scans up to limit messages.
dry_run=True (default) only lists what would go. Messages younger than 14 days are bulk-deleted in batches
of 100; older ones are deleted one by one (slow, rate limited).
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>"
},
"name": "messages_purge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | ||
| after | No | ||
| guild | No | ||
| limit | No | ||
| author | No | ||
| before | No | ||
| reason | No | ||
| channel | Yes | ||
| dry_run | No | ||
| contains | No | ||
| include_bots | No | ||
| include_pinned | No |