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
3 個讚
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 個讚
Thanks for the feedback — glad it’s working well for you! 
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!
I created a similar workflow. But instead of deleting the emails, I use labels: Add the label TRASH, remove the label INBOX. Now the emails appear in your normal trash folder which are deleted after 30 days anyway.