Server Management & Automation
Auto Purge Engine
Schedule recurring channel message cleanups (1h to 14d) with message type filters and pinned message protection.
1. Feature Overview
Auto Purge automatically cleans outdated messages in noisy channels (such as #bot-commands or temporary media drops) on configurable intervals while protecting pinned messages.
2. How Auto Purge Engine Works
Configured via the Dashboard Auto Purge view (up to 15 active rules per server), a scheduler sweeps each rule’s channelId according to its recurrence interval (days / hours, from 1 hour up to 14 days) and deletes matching messages.
3. Required Permissions
- Server Member / Staff Permissions: Administrator / Manage Server (Dashboard configuration)
- Fusion Bot Permissions: View Channel, Read Message History, Manage Messages
4. Setup Instructions
-
Open Auto Purge ViewLog in to https://panel.fusionhub.in/dashboard and select Auto Purge.
-
Select Channel, Interval & FilterPick the target channel, interval (1h to 14d), filter type (
all,bots,humans,links,attachments), and confirmexcludePinsis checked.
5. Dashboard Configuration
Dedicated Auto Purge view (view-autopurge) lets admins add/toggle up to 15 channel rules safely (also configurable via Sunday AI autopurge_arm).
6. Supported Commands
| Command | Parameters | Required Role | Description |
|---|---|---|---|
/purge | [amount] [filter] | Manage Messages | Manual instant equivalent for immediate ad-hoc cleanups. |
7. Configuration Options
| Option / Setting | Default | Description |
|---|---|---|
days / hours | 0d / 1h | Cleanup recurrence interval between 1 hour and 14 days. |
messageType | "all" | Filter target: all, bots, humans, links, or attachments. |
excludePins | true | Protects pinned messages from scheduled deletion. |
enabled | true | Enable or pause individual channel schedules. |
8. Practical Examples
json
Example Stored Rule Shape
{
"channelId": "123456789012345678",
"hours": 24,
"messageType": "bots",
"excludePins": true
}
9. Recommended Settings
- Always leave
excludePins: trueenabled to avoid accidentally losing channel guides. - Use
botsfilter on mixed channels where only bot replies need clearing.
10. Known Limitations
- Maximum 15 scheduled rules per server. Discord API bulk-delete endpoints only bulk-remove messages newer than 14 days.
11. Common Errors
| Symptom / Error | Cause | Resolution |
|---|---|---|
| Scheduled cleanup skipped | Rule disabled, interval shorter than 14-day old un-bulk-deletable messages, or missing <code>Manage Messages</code>. | Confirm permissions and check rule toggle. |
12. Troubleshooting
- Verify channel still exists and Fusion Bot has
Read Message Historyin channel permissions.