EVERYTHING XIAOMI
Get listed

Gmail Cleanup

Gmail Cleanup is a free, open-source Google Apps Script for clearing older promotional and marketing mail from Gmail.

Place
#29 of 31
Score
5.6
Gmail Cleanup's website

What Gmail Cleanup is

Gmail Cleanup is a free, open-source Google Apps Script for clearing older promotional and marketing mail from Gmail. By default, it unsubscribes from promotions and newsletters older than one day, moves those messages to Trash, and also sends spam to Trash. Trash remains recoverable for 30 days under the default behavior. Detection uses Gmail’s Promotions category, newsletter subject and label patterns, and sender patterns such as noreply and marketing. The script reads List-Unsubscribe headers and supports RFC 8058 one-click HTTP and mailto methods. Sender exclusions and unsubscribe-only lists can be edited in the script or its Google Sheet. Setup uses Google Apps Script, the Gmail API, Google Sheets and Drive. Dry-run mode previews actions, while a sheet records unsubscribe attempts and skipped senders. Optional triggers can run cleanup daily and an unsubscribe pass every three days. Sender-pattern searches may catch legitimate transactional mail, so domain exclusions and dry runs are advised.

Good

  • Free and open-source
  • Unsubscribes through supported header methods
  • Dry-run previews proposed actions
  • Trash remains recoverable for 30 days
  • Editable sender exclusion lists

Watch out

  • Supports Gmail only
  • Requires Apps Script and Gmail API setup
  • Sender patterns may catch legitimate messages
  • Automation requires optional trigger configuration

Who it suits

It suits Gmail users who want automated cleanup and unsubscribe handling through Google Apps Script. Users comfortable configuring scripts, sheets, and API access can adjust sender controls.

Verdict

Gmail Cleanup combines deletion, unsubscribe handling, previews, and logging for Gmail. Its sender matching requires cautious setup, especially before enabling automated runs.

The facts

Each one read from Gmail Cleanup's own pages, with the date it was checked.

What it does

Automation
Optional time-based triggers can run cleanup daily and unsubscribe every three days.checked 11 Oct 2001
Cleanup
By default, it unsubscribes from and moves promotions and newsletters older than one day to Trash, and moves spam to Trash.checked 11 Oct 2001
Default actions
By default, it unsubscribes and moves promotions and newsletters older than one day to Trash, and moves spam to Trash.checked 4 Oct 2001
Detection
It targets Gmail's Promotions category, newsletter subject or label patterns, and sender patterns such as noreply and marketing.checked 11 Oct 2001
Integration
Setup instructions require creating a project in Google Apps Script and enabling the Gmail API; the script also uses Google Sheets and Drive.checked 11 Oct 2001
Integrations
Setup uses Google Apps Script, the Gmail API, and a Google Sheet created in Google Drive for logs and editable sender lists.checked 4 Oct 2001
License
The repository is distributed under the MIT license.checked 11 Oct 2001
Limit
The README warns that sender-pattern searches may match legitimate transactional messages and recommends excluding domains and running dryRun first.checked 4 Oct 2001
Logging
The script creates a Google Sheet that records unsubscribe attempts and skipped senders, and provides editable excluded-sender and unsubscribe-only lists.checked 11 Oct 2001
Notable limit
The README cautions that sender-pattern searches can match legitimate transactional email and recommends whitelisting domains and running dryRun first.checked 11 Oct 2001
Preview
A dry-run mode previews what would be deleted before cleanup runs.checked 11 Oct 2001
Preview and logging
Dry-run mode previews actions, and unsubscribe attempts are logged in a Google Sheet.checked 4 Oct 2001
Protection
Keyword detection in English and Spanish is used to protect potentially important health, government, immigration, legal, education, and transactional emails in ambiguous searches.checked 11 Oct 2001
Purpose
Gmail Cleanup is a Google Apps Script for automated Gmail inbox cleanup and mass unsubscribe.checked 11 Oct 2001
Recoverability
The README says messages moved to Trash are recoverable for 30 days and permanent deletion is off by default.checked 11 Oct 2001
Sender controls
Users can exclude senders from cleanup or unsubscribe from them while keeping their emails, using script settings or Google Sheet tabs.checked 11 Oct 2001
Unsubscribe
It parses List-Unsubscribe headers and supports HTTP one-click and mailto unsubscribe endpoints.checked 11 Oct 2001

Alternatives to Gmail Cleanup

All alternatives
  1. 1Clean Email logo

    Clean Email

    Free planAndroidiOSWebmacOS
    8.0From $2.50 a month
  2. 2

    Paperweight

    Free planOpen sourceLinuxmacOSWindows
    7.8From $4.58 a month
  3. 3

    Gmail Unsubscriber

    Free planOpen sourceAndroidiOSWeb
    7.7Free plan
  4. 4

    InboxSweeper

    Free planOpen sourceWebLinuxmacOSSelf-hosted
    7.4Free plan
  5. 5

    Cleanfox

    Free planAndroidiOSWeb
    7.3Free plan
  6. 6

    Gmail Unsubscribe

    Free planWebAPIExtension
    7.2From $2.99 a month