Templates / Auto-Delete SPAM, Social, and Promotions Emails in Gmail

Auto-Delete SPAM, Social, and Promotions Emails in Gmail

Ready for 3.0

by Khairul Muhtadin ✓ · 3,618 views · created 2025-05-24 · Personal Productivity

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 (4)

Gmail

What it does

Wake up to a clean Gmail inbox. This workflow auto-deletes emails sitting in your SPAM, Social, and Promotions categories, so clutter never piles up. Last updated: September 2026. Who is this for? Gmail users who want a tidy inbox without manual effort. Especially handy if SPAM, social updates, or promo emails keep burying the messages that matter. What problem is this workflow solving? Unwanted emails clutter your inbox and bury what matters. Deleting them by hand is repetitive and easy to put off. This workflow does the cleanup for you on a schedule. What this workflow does Every 3 days, this workflow deletes emails from Gmail’s SPAM, Social, and Promotions categories. It uses n8n’s Gmail node to fetch these emails, merges them into a single list, splits out individual email IDs, and deletes each one. The scheduled process ensures consistent inbox maintenance. Setup 1. Set up valid Gmail OAuth2 credentials in n8n. 2. Import the "Clean My Mail" workflow into your n8n instance. 3. Confirm the Gmail nodes target SPAM, CATEGORYSOCIAL, and CATEGORYPROMOTIONS labels. 4. Adjust the "Run Every 3 Days (Trigger)" node’s schedule if needed. 5. Activate the workflow to begin automated cleaning. How to customize this workflow to your needs - Change the Gmail node labels to target other categories or custom labels. - Adjust the schedule frequency in the trigger node. - Add filters to spare specific emails from deletion. - Extend functionality with nodes for archiving or notifications. Quick Answers How often does it clean? Every 3 days by default. Change the trigger schedule to any interval you prefer. Which labels get deleted? SPAM, Social (CATEGORYSOCIAL), and Promotions (CATEGORYPROMOTIONS). Can I protect certain emails? Yes. Add filters or adjust the targeted labels so important mail is spared. Made by: khmuhtadin Need a custom? contact me on LinkedIn or Web Additional info Built with n8n. Need an assessment on your business? Feel free to reach out at https://khmuhtadin.com/consultation/

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.