whatisgithub

What is gmail-autoclean?

wassupdoc/gmail-autoclean — explained in plain English

Analysis updated 2026-05-18

1JavaScriptAudience · generalComplexity · 2/5Setup · moderate

In one sentence

A Google Apps Script tool that automatically deletes old newsletters and recurring emails while protecting anything you mark as important.

Mindmap

mindmap
  root((repo))
    What it does
      Learns senders via Gmail labels
      Deletes old recurring emails
      Protects tagged emails
    Tech stack
      Google Apps Script
      JavaScript
      Google Sheets
    Use cases
      Inbox cleanup
      Keep important emails
      Registry dashboard
    Audience
      Gmail users
      General

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically delete old newsletters and coupons while keeping only the newest few emails per sender.

USE CASE 2

Protect important emails like receipts or tax documents from ever being deleted using a Keep label.

USE CASE 3

Review a spreadsheet dashboard showing every managed sender and how many emails were removed or would be removed.

What is it built with?

Google Apps ScriptJavaScriptGoogle Sheets

How does it compare?

wassupdoc/gmail-autoclean0xmukesh/docusaurus-tutorial1tsmejp/palworld-docker-wine
Stars111
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-12-27
MaintenanceDormant
Setup difficultymoderateeasymoderate
Complexity2/52/54/5
Audiencegeneraldeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires copying a Google Sheets template or pasting Apps Script files by hand, then granting Gmail and Sheets permissions.

So what is it?

Gmail AutoClean is a Google Apps Script tool that keeps a Gmail inbox tidy by automatically deleting old newsletters, coupons, and other recurring emails while protecting anything a user marks as important. Rather than a person manually going through hundreds or thousands of old messages, the tool learns which senders it should manage and applies rules that decide how many recent emails to keep. The tool works entirely through Gmail labels. A user tags one email from a sender with a label called AutoClean slash Learn, and after running the cleanup, the sender is added to a registry with settings such as keeping only the newest email, running in test mode first, and never touching unread mail. A separate label, AutoClean slash Keep, protects any email or thread for as long as that label stays applied, which is useful for tax receipts, warranty information, or anything else that should never be removed. Another label, AutoClean slash Ignore, tells the tool to skip a sender entirely, which suits banks, schools, friends, or family. Everything runs inside a spreadsheet that the tool creates automatically the first time it runs. That spreadsheet acts as a dashboard, showing every managed sender, how many emails were removed, how many would be removed in a test run, and links back to the relevant messages in Gmail. Cleanup can be triggered manually or scheduled to run automatically, and it processes existing inbox history as well as new mail going forward, working through large numbers of senders in batches. Installing it means either making a copy of a ready made template spreadsheet, which sets up the script automatically, or manually creating a Google Sheet, pasting the provided script files into the Apps Script editor, and granting Gmail and Sheets permissions. There is no automatic update mechanism, so updating later means replacing the script files by hand while the sender settings stay untouched in the spreadsheet. This is a very small project so far, with a single star, aimed at anyone who wants their Gmail inbox to stay clean without manually deleting old newsletters and receipts one by one.

Copy-paste prompts

Prompt 1
Help me set up Gmail AutoClean using the template spreadsheet.
Prompt 2
Explain how the AutoClean Learn, Keep, and Ignore Gmail labels work together.
Prompt 3
Walk me through manually installing Gmail AutoClean's Apps Script files.

Frequently asked questions

What is gmail-autoclean?

A Google Apps Script tool that automatically deletes old newsletters and recurring emails while protecting anything you mark as important.

What language is gmail-autoclean written in?

Mainly JavaScript. The stack also includes Google Apps Script, JavaScript, Google Sheets.

How hard is gmail-autoclean to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is gmail-autoclean for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.