{"product_id":"gmail-newsletter-cleanup-auto-unsubscribe-delete-in-n8n","title":"Gmail Newsletter Cleanup: Auto-Unsubscribe \u0026 Delete in n8n","description":"\u003ch3\u003eStop newsletter clutter automatically: unsubscribe, delete, and keep the rest of your inbox clean in n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow scans your \u003cstrong\u003eGmail\u003c\/strong\u003e unread messages every hour, identifies newsletter emails using the \u003cstrong\u003eList-Unsubscribe\u003c\/strong\u003e header, attempts to unsubscribe via the provided URL, and then deletes those emails—while marking non-newsletters as read to reduce noise.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns hourly\u003c\/strong\u003e and retrieves up to \u003cstrong\u003e20 unread emails\u003c\/strong\u003e from your Gmail inbox.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDetects newsletters\u003c\/strong\u003e by checking each message for a \u003cstrong\u003eList-Unsubscribe\u003c\/strong\u003e header.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts an unsubscribe URL\u003c\/strong\u003e from the \u003cstrong\u003eList-Unsubscribe\u003c\/strong\u003e header when available.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAttempts auto-unsubscribe\u003c\/strong\u003e by sending an \u003cstrong\u003eHTTP request\u003c\/strong\u003e to the extracted unsubscribe URL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDeletes newsletter emails\u003c\/strong\u003e from Gmail after the unsubscribe attempt (or even if the unsubscribe\/delete step errors, per workflow logic).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eProtects important mail\u003c\/strong\u003e: if an email is not identified as a newsletter (or no unsubscribe URL is found), it is \u003cstrong\u003emarked as read\u003c\/strong\u003e instead of removed.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUnderstands Gmail retention\u003c\/strong\u003e: deleted messages remain in \u003cstrong\u003eGmail Trash for 30 days\u003c\/strong\u003e before final removal, so you can recover them during that window.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eFor SaaS operators who want automated inbox hygiene without manually managing subscriptions.\u003c\/li\u003e\n  \u003cli\u003eFor automation engineers building “low-lift” email cleanup workflows in n8n.\u003c\/li\u003e\n  \u003cli\u003eFor teams managing high volumes of marketing emails and wanting a consistent unsubscribe-and-clean approach.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail Trigger\u003c\/strong\u003e (runs hourly; polls unread messages; supports max results configuration).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eif\u003c\/strong\u003e node to determine whether a \u003cstrong\u003eList-Unsubscribe\u003c\/strong\u003e header exists.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ecode\u003c\/strong\u003e node to extract the unsubscribe URL from the header.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHTTP Request\u003c\/strong\u003e node to call the unsubscribe URL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail\u003c\/strong\u003e node actions to \u003cstrong\u003edelete\u003c\/strong\u003e newsletters and \u003cstrong\u003emark non-newsletters as read\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46132762607795,"sku":"N8N-20186","price":77.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/1LhhiPlGZt_jQfUanR9SY_MpjUk6c7.png?v=1790759108","url":"https:\/\/buyflowscripts.com\/products\/gmail-newsletter-cleanup-auto-unsubscribe-delete-in-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}