Templates / Nightly Discord channel cleanup

Nightly Discord channel cleanup

Ready for 3.0

by Viktor · 1,568 views · created 2025-02-22 · Miscellaneous

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 10 nodes and runs on a schedule (every day at 21:00). Along the way it connects Discord.

How it runs

Trigger: On a schedule (every day at 21:00).

  1. Get all Discord channels (Discord): get many
  2. Cool down Discord API rate limits (Wait): waits 2 seconds
  3. Loop Over Channels (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Filter: keeps only the items that match a condition
  5. Get messages from Channel (Discord): get many (message)
  6. Loop Over Messages (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Cool down Get messages API rate limits (Wait): waits 2 seconds
  8. Delete Message (Discord): delete message
  9. Cool down Message deletion API rate limits (Wait): waits 1 seconds

Services it uses

Discord

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (5)

From the author

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…

Excerpt from Viktor's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.