Many times when surfing the web, we often subscribe to Email newsletters (receive article notifications via email). If we meet some good sites, we don’t say, but sometimes we accidentally subscribe to spam and advertising sites, it’s also tiring.
There used to be a site called unroll.me – a free online service that makes it easy to unsubscribe from email newsletters on Gmail. However, you will have to give Unroll full access to your Gmail inbox and Google contacts to automatically remove your email address from the various mailing lists.
So, I would like to share with you a script by author Amit Agarwal, written to replace Unroll. This Google Script will help you to unsubscribe in bulk from the pages you have subscribed to.
Source code: https://github.com/labnol/unsubscribe-gmail
1. User manual
First, click here to copy the Gmail Unsubscriber sheet to your Google Drive.
Click the Gmail menu in the Google Sheet (see image above) and select Configure. Allow the script to access your Gmail account. This is an open source Google Script so you can rest assured that it doesn’t store any of your data.
In the inbox, enter the name of one of your Gmail labels (unsubscribe by default) and all emails marked with this label will be unsubscribed. Please save your changes.
The Gmail Unsubscriber program will now be initialized and start running in the background. You can now apply the Unsubscriber label to any email in Gmail and you will automatically unsubscribe every 10-15 minutes. Everything is logged into a Google Sheet so you know what’s going on.