How to Unsubscribe from Mailing Lists and Junk Newsletters in Gmail

Unroll.me is a free online service that lets you easily unsubscribe from email newsletters and other bulk messages in Gmail. You, however, will have to grant complete access to your Gmail mailbox and to your Google Contacts for Unroll.me to automatically remove your email address from various mailing lists.

This morning, it was revealed that Unroll.me is silently scraping your Gmail mailbox and selling the data to Uber. Maybe it is hidden somewhere in the terms of service that the app can share your data with other companies but who actually reads the fine print. If this worries you,  here’s a simple guide on how to block the app from accessing your Gmail emails in future.

Christian Heilmann’s tweet - Feature request for Gmail: automatically find and follow the unsubscribe link in all highlighted emails - prompted me to build an automated system for unsubscribing your Gmail address from the bulk senders. Here’s how it looks like:

Unsubscribe from Gmail Bulk Messages

How to Unsubscribe from Email Newsletters in Gmail

What I have now is a simple Google Script that parses the content of bulk emails and finds the unsubscribe link. If an unsubscribe link is found, the script opens the link and your email is automatically unsubscribed. In some cases, the bulk sender would require you to send a message to a special email address to unsubscribe and our Google script can do that as well.

The big advantage is that don’t have to grant access to your Gmail account to any third-party service and you can add subscription emails to the unsubscribe queue from any email client including desktop and mobile apps. Let’s get started:

  1. Click here to copy the Gmail Unsubscriber sheet to your Google Drive.
  2. Go to the Gmail menu in the Google Sheet (see screenshot above) and choose Configure. Allow the script to access to your Gmail account. It is an open source Google Script that runs does not store or upload a single byte of your data.
  3. In the inbox box, enter a name of your Gmail label (the default is Unsubscribe) and all emails marked with this label will be unsubscribed. Save your changes.

The Gmail Unsubscriber program is now initialized and running in the background. You can now apply the Unsubscribe label to any email message in Gmail and you’ll be automatically unsubscribed in 10-15 minutes. Everything is logged in the Google Sheet so you know what’s happening behind the scenes. Give it a try!

Also, the solution works everywhere - you can apply the label to unwanted subscription newsletters on the Gmail website, mobile apps for Gmail on iPhone & Android or even third-party email clients like Microsoft Outlook (move the email to the Unsubscribe folder) or Apple Mail.

How Gmail Unsubscribes from Mailing Lists

All legitimate bulk email senders include a List-Unsubscribe field in the message header that contains an URL or email address for unsubscribing from a mailing list. Here’s a screenshot:

List-Unsubscribe Header in Bulk Emails

You can view these details by opening any bulk message inside Gmail and choosing “Show Original” from the menu. In other cases, the unsubscribe link may be included in the message body with the anchor text like “click here to unsubscribe” - the script is smart enough to recognize all such links, it opens them for you and removes your email address from the mailing list.

Amit Agarwal

Amit Agarwal

Google Developer Expert, Google Cloud Champion

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.

Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

0

Awards & Titles

Digital Inspiration has won several awards since it's launch in 2004.

Google Developer Expert

Google Developer Expert

Google awarded us the Google Developer Expert award recogizing our work in Google Workspace.

ProductHunt Golden Kitty

ProductHunt Golden Kitty

Our Gmail tool won the Lifehack of the Year award at ProductHunt Golden Kitty Awards in 2017.

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional (MVP) title for 5 years in a row.

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator title recognizing our technical skill and expertise.

Email Newsletter

Sign up for our email newsletter to stay up to date.

We will never send any spam emails. Promise.