Server Management & Automation

Auto Purge Engine

Schedule recurring channel message cleanups (1h to 14d) with message type filters and pinned message protection.

Last updated: 2 min read

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

  1. Open Auto Purge View
    Log in to https://panel.fusionhub.in/dashboard and select Auto Purge.
  2. Select Channel, Interval & Filter
    Pick the target channel, interval (1h to 14d), filter type (all, bots, humans, links, attachments), and confirm excludePins is 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

CommandParametersRequired RoleDescription
/purge[amount] [filter]Manage MessagesManual instant equivalent for immediate ad-hoc cleanups.

7. Configuration Options

Option / SettingDefaultDescription
days / hours0d / 1hCleanup recurrence interval between 1 hour and 14 days.
messageType"all"Filter target: all, bots, humans, links, or attachments.
excludePinstrueProtects pinned messages from scheduled deletion.
enabledtrueEnable or pause individual channel schedules.

8. Practical Examples

json Example Stored Rule Shape
{
  "channelId": "123456789012345678",
  "hours": 24,
  "messageType": "bots",
  "excludePins": true
}
  • Always leave excludePins: true enabled to avoid accidentally losing channel guides.
  • Use bots filter 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 / ErrorCauseResolution
Scheduled cleanup skippedRule 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

  1. Verify channel still exists and Fusion Bot has Read Message History in channel permissions.

Search Fusion Bot Documentation