Automated Gmail Inbox Cleanup
detail.loadingPreview
This n8n workflow provides an effortless way to keep your Gmail inbox tidy by automatically deleting SPAM, Social, and Promotions emails on a schedule. Maintain a clutter-free digital space and reduce distractions without manual effort.
About This Workflow
Overwhelmed by a cluttered Gmail inbox? This n8n workflow is your ultimate solution for automated email management. Designed to run every three days, it intelligently scans your Gmail for messages categorized as SPAM, Social, and Promotions. Once identified, it systematically collects all relevant email IDs and proceeds to delete them, ensuring your inbox remains clean and focused. This automation frees up valuable time and storage, allowing you to concentrate on important communications. The workflow is highly customizable, letting you easily adjust the trigger schedule and target specific email labels to perfectly align with your personal inbox hygiene preferences.
Key Features
- Automated Scheduled Cleanup: Runs automatically every 3 days (fully customizable) to keep your inbox continuously clean.
- Targeted Email Deletion: Specifically fetches and deletes emails from SPAM, CATEGORY_SOCIAL, and CATEGORY_PROMOTIONS labels.
- Easy Gmail Integration: Connects seamlessly with your Gmail account using OAuth2 credentials.
- Scalable & Adaptable: Easily modify or add more Gmail labels to include other unwanted email categories.
- Bulk Deletion: Efficiently processes and deletes multiple emails in batches after combining all fetched items.
How To Use
- Set up Gmail Credentials: Ensure all Gmail nodes (e.g., "Fetch SPAM Emails", "Delete All Mails") are connected to a valid Gmail OAuth2 credential. You'll find a single 'Gmail account' credential shared across these nodes.
- Adjust Email Categories (Optional): To delete different email categories, modify the
labelIdsparameter within the "Fetch SPAM Emails", "Fetch Social Emails", and "Fetch Promotion Emails" nodes. For example, change 'SPAM' to another label like 'TRASH' or a custom label. - Configure Schedule (Optional): The "Run Every 3 Days (Trigger)" node is preset to run every three days. Adjust the
intervalparameter within this node if you prefer a different frequency (e.g., daily, weekly, or monthly). - Review Deletion Target: Before activating, carefully review the
labelIdsin your "Fetch" nodes to prevent accidental deletion of important emails. The workflow is designed to delete all emails fetched from the specified categories.
Apps Used
Workflow JSON
{
"id": "82df6b59-a3f9-4c8f-8029-172d5c42aaa3",
"name": "Automated Gmail Inbox Cleanup",
"nodes": 7,
"category": "Personal",
"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: 82df6b59-a3f9...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Send Obsidian Notes as Emails with Dynamic Attachments
This workflow empowers you to transform your Obsidian notes into dynamic emails, complete with custom metadata from YAML frontmatter and automated attachment handling. Seamlessly share your thoughts and files directly from your preferred note-taking environment.
Smart Expense Tracking with Telegram & AI
Automate your personal finance management by turning your Telegram chat into an intelligent expense tracker. Simply send a photo of a receipt or a text message, and this workflow uses AI to categorize your spending, extract crucial details, and provide instant summaries.
Voice Task to Notion: AI-Powered Processing
This n8n workflow automates the intelligent processing of voice-activated tasks intended for Notion or similar tools. It leverages advanced AI to understand inputs, builds a dynamic knowledge base from them, and logs processing outcomes to Google Sheets. Instantly get alerted via Slack for any errors, ensuring reliable task management.