Nightly Discord Channel Cleanup — n8n Workflow
Overview
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.
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a scheduled trigger, running on a defined schedule.
- 2
Process
Data flows through 10 nodes, connecting discord, filter, scheduletrigger.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (10)
Discord
discord
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
nightly-discord-channel-cleanupfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Viktor
@qxuken
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →