Nightly Discord Channel Cleanup

Nodes

ff11a5cb-472b-475a-9957-b9b9edf01e7b

Created by

ViViktor

Last edited 39 days ago

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
  4. Activate the workflow to run on a schedule

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!