๐ง Nightly Discord channel cleanup
โก 1,512 views ยท ๐ง Miscellaneous
Description
Nightly Discord Channel Cleanup
This workflow runs every day at 9:00 p.m. and:
- Retrieves all Discord channels using your provided credentials.
- Pauses briefly to respect Discord API rate limits.
- Loops through each channel and fetches messages.
- Filters out messages older than seven days.
- Deletes those older messages, again pausing to stay within deletion rate limits.
By setting up this workflow on a schedule, you can automatically keep Discord channels tidy and compliant with retention policies.
๐จโ๐ค Setup
- Add your Discord credentials
- Change the server in each Discord node to the correct one
- Click the Test Workflow button
- Activate the workflow to run on a schedule
๐ Nodes Used
Discord, Schedule Trigger, Filter
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File