Manually triggered workflow that searches Gmail for unwanted emails (e.g., chats, unsubscribe, license notices) and bulk deletes them in batches of 100 for efficient inbox cleanup.
This n8n workflow automates the removal of unwanted emails from your Gmail inbox. It starts with a manual trigger, then uses Gmail's search API with a custom query ('-in:chats unsubscribe -license -key -password') to fetch IDs of matching messages. The results are processed in batches of 100 via a SplitInBatches node, which loops to a delete operation on each email ID until all are removed.
Benefits include massive time savings for users with cluttered inboxes—ideal for cleaning years of accumu