Nightly cleanup of old messages in your channels

Every night the scenario goes through your messenger channels and deletes messages older than a week, keeping only recent chat.

  • Old messages deleted automatically
  • Every night, on schedule
  • Recent chat stays put
  • Cleans gently, without hitting rate limits

How it works

To connect express and , you don't need a developer: a ready-made scenario links them in minutes.

  1. Starts when: Every day at 9pm
  2. Then: Get all Discord channels
  3. Then: Cool down Discord API rate limits
  4. Check: Loop Over Channels
  5. Check: Filter Messages older than 7 days
  6. Check: Loop Over Messages
  7. Then: Delete Message
  8. Then: Cool down Message deletion API rate limits
  9. Then: Get messages from Channel
  10. Then: Cool down Get messages API rate limits

You can launch this integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.