Auto Purge
Automatically delete messages in channels.
Configure Auto Purge in the dashboard →
Overview#
Auto purge clears a channel on a schedule. Pick the channel, how often, what time of day, and how many messages each run should delete. Nobody has to remember to sweep it.
Each schedule is independent, so a bot commands channel can clear nightly while a memes channel clears weekly. Every run is written to the log channel.
A schedule can either delete messages or nuke the channel. Nuking deletes the channel outright and immediately recreates it with the same name, position, category, topic, slowmode and permission overwrites. It is the only way to clear a channel completely, because Discord will not bulk delete messages older than 14 days.
Setup#
-
Open the dashboard and go to Moderation > Auto Purge, then turn the module on.
-
Press Add Schedule.
-
Pick the Channel, an Action of delete messages or nuke channel, a Frequency of daily or weekly, and the Time in UTC.
-
For the delete action, set Messages to delete (1-1000) for each run. Nuking always clears everything.
-
Set a Log Channel so you can see the runs happen, then save.
Settings#
Commands#
.autopurge helpAdd, list and remove schedules from chat. Manage Messages.autopurge nuke <#channel> <daily|weekly> <HH:MM>Schedule a nuke instead of a message delete. Manage Messages.autopurge reminder <#channel> <off|sticky|2h> [message]Keep a "cleared in X" reminder in the channel, at the bottom or on a timer. Manage Messages.autopurge aftermessage <#channel> <message|none>Set the message posted right after each clear. Manage Messages/purge all <count>Clear a channel now, by hand, instead of waiting for the schedule. Manage Messages
Permissions#
What it looks like#
Tips and gotchas#
Nothing was deleted.
Check the module is on, that Iris holds Manage Messages in that channel, and that the messages are under 14 days old.
Can one channel have two schedules?
No. It is one schedule per channel. Raise the count or the frequency instead.
What is the difference between delete and nuke?
Delete removes up to 1000 recent messages and leaves the channel alone. Nuke deletes the channel and rebuilds it, so it always ends up completely empty, but the channel gets a new ID.
Are pinned messages deleted?
Yes. A run clears everything it can reach, pins included. Keep anything worth keeping in a channel that is not on a schedule.