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-10-19.

Nodes used (5)

Discord

What it does

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 1. Add your Discord credentials 2. Change the server in each Discord node to the correct one 3. Click the Test Workflow button 3. Activate the workflow to run on a schedule

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.