Gmail Cleaner Workflow - Auto-Cleanup for Your Inbox

Hi n8n community,

My Gmail inbox was constantly cluttered, so I built a simple Gmail Cleaner workflow in n8n to keep things organized automatically.

It runs daily at 2 AM and:

  • Clears Spam, Promotions, Trash, and Social emails

  • Uses a Schedule node for automatic daily runs

  • Works directly with your Gmail account, fully self-hosted and secure

  • Built with just Gmail and Schedule nodes - no external tools required

Here’s my workflow - GitHub - SanjhaiPrakash18/Sanjhai-s-Gmail-Cleaner-Assistant

Just connect your Gmail account and tweak the filter settings in the Gmail node. Setup takes about 5 minutes.

Let me know if you try it - I’d love your thoughts or suggestions

2 Likes

works great - Thanks! a lot of scripting - hmm it would be great if the deleted mails stay in archive for a certain time - in case of wrong deletion or recovery option.

1 Like

Thanks for the feedback — glad it’s working well for you! :blush:
You’re right, having a recovery buffer is a smart idea. I’ll look into modifying the workflow to move emails to Archive or a custom label (like “To Be Deleted”) first, and then auto-delete them after a few days. That way, you’d have a window for recovery before permanent deletion.
Appreciate the suggestion!