Nightly Discord Channel Cleanup
detail.loadingPreview
Automatically cleans up old messages in Discord channels.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow automatically runs daily to clean up old messages in your Discord channels. It fetches all channels, then iterates through each channel to identify and delete messages older than seven days. This helps maintain tidy channels and enforce message retention policies.
Key Features
- Scheduled daily execution at 9:00 PM UTC.
- Retrieves all Discord channels.
- Fetches messages from each channel.
- Filters messages older than 7 days.
- Deletes identified old messages.
- Includes built-in delays to respect Discord API rate limits.
How To Use
- Add Discord Credentials: Navigate to the Credentials section and add your Discord bot token.
- Configure Discord Nodes: In each Discord node (e.g., 'Get all Discord channels', 'Get messages from Channel', 'Delete Message'), ensure the
guildIdis correctly set to your server's ID. - Test Workflow: Click the 'Test Workflow' button to run it and verify that it functions as expected.
- Activate Workflow: Once tested, activate the workflow to enable scheduled execution.
Apps Used
Workflow JSON
{
"id": "177ba016-71a7-40d7-a9a5-aad3c3a76825",
"name": "Nightly Discord Channel Cleanup",
"nodes": 0,
"category": "Discord Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 177ba016-71a7...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Telegram Profanity & Toxicity Filter
This n8n workflow automatically monitors incoming Telegram messages for profanity and toxic language. It leverages Google's Perspective API to analyze message content, and if a message is deemed inappropriate, the workflow sends an automated warning response back to the sender.
Convert Any Webpage to PDF and Save Locally
This n8n workflow provides a simple way to convert any public webpage URL into a PDF document. Once converted, the PDF file is automatically saved to your local disk, making it easy to archive or share web content offline.
Automated Multi-Platform Influencer Discovery & Qualification
This powerful n8n workflow automates the entire process of discovering, scoring, and qualifying ideal influencers across Instagram, TikTok, and YouTube for your marketing campaigns. Streamline your talent acquisition by leveraging custom criteria and a sophisticated scoring algorithm.
Automate DOCX to PDF Conversion and Save Locally
This workflow automates the process of converting a Microsoft Word DOCX file to a PDF document. It downloads a source DOCX file, uses ConvertAPI to perform the conversion, and then saves the resulting PDF file directly to your local disk.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.