Skip to content
FlowHubFluxonLab
Discord
Discordfree

Nightly Discord Channel Cleanup

by Viktoradapted from n8n official workflow galleryUpdated Aug 2026
RequiresDiscordDiscord
Share Post Share
SILoop Over ChannelsLoop Over Chann…SILoop Over MessagesLoop Over Messa…ScEvery day at 9pmWaCool down Discord API rate limitsCool down Disco…Get all Discord channelsGet all Discord…WaCool down Message deletion API rate limitsCool down Messa…WaCool down Get messages API rate limitsCool down Get m…Get messages from ChannelGet messages fr…Delete MessageFiFilter Messages older than 7 daysFilter Messages…1234567891011
1/5
STEPS · 11
Runs on a schedule

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.

Tags

n8nreference-onlydiscord
Connects
discordDiscord
CategoryDiscord
Triggermanual
Complexitycomplex
Nodes10
AddedFeb 22, 2025

Related workflows

See all Discord
Cdiscord
free

Send Webflow form submissions to Discord dynamically

What this does: This automation will dynamically create channels on your Discord server for each of your Webflow forms then send formatted form submissions as messages in those channels. This is useful for Webflow will only notify a single email of a form submission. By using this workflow you can enhance your Webflow form management by receiving them in Discord. This is great if you need to notify multiple team members or communities of your form submissions. Usage guide Full written and video guide Simply create credentials for Webflow and Discord and connect them to the nodes. The video guide demonstrates a realworld usecase using a Webflow template and breaks down each node in detail about how it works.

by kreonovo
discordsheets
free

Get all members of a Discord server with a specific role

Use Case This workflow retrieves all members of a Discord server or guild who have a specific role. Due to limitations in the Discord API, it only returns a limited number of users per call. To overcome this, the workflow uses Google Sheets to track which user we received last to return all Members (of a certain role) from a Discord server in batches of 100 members. Setup Add your Google Sheets and Discord credentials. Create a Google Sheets document that contains ID as a column. We're using this to remember which member we received last. Edit the fields in the setup node Setup: Edit this to get started. You can read up on how to get the Discord IDs via this link. Link to your Discord server in the Discord nodes Activate the workflow Call the production webhook URL in your browser Requirements Admin rights in the Discord server and access to the developer portal of discord Google Sheets Minimum n8n version 1.28.0 Potential Use cases Writing a direct message to all members of a certain role Analysing user growth on Discord regularly Analysing role distributions on Discord regularly Saving new members in a Discord ... Keywords Discord API, Getting all members from Discord via API, Go

by Niklas Hatje
discord
free

Send a message with a Discord Bot

Explore this workflow on its official n8n template page.

by eem2188