Auto-clean Gmail spam folder - monthly using Gmail API
Ready for 3.0Ready 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.
What this workflow does
This workflow has 4 nodes and runs on a schedule (every month at 06:00). Along the way it connects Gmail.
How it runs
Trigger: On a schedule (every month at 06:00).
- Fetch SPAM Emails (Gmail) (Gmail): get many
- Pause Before Deletion (5s) (Wait): pauses before continuing
- Delete Fetched SPAM Emails (Gmail): delete
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (3)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - Wait
n8n-nodes-base.wait
From the author
This automated n8n workflow uses the Gmail API to clean the spam folder by permanently deleting all emails on the first day of each month. The system ensures efficient email management and improves Gmail storage by removing unwanted spam emails. Good to Know…