Templates / Auto-clean Gmail spam folder - monthly using Gmail API

Auto-clean Gmail spam folder - monthly using Gmail API

Ready for 3.0

by Oneclick AI Squad ✓ · 824 views · created 2025-07-18 · 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.

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).

  1. Fetch SPAM Emails (Gmail) (Gmail): get many
  2. Pause Before Deletion (5s) (Wait): pauses before continuing
  3. Delete Fetched SPAM Emails (Gmail): delete

Services it uses

Gmail

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)

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…

Excerpt from Oneclick AI Squad's description on n8n.io.

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.