Clear old machine mail out of Gmail in category sweeps

Lisa Mollica had Claude in Cowork work through a 78,700-conversation Gmail account pile by pile, moving 16,657 to Trash and pulling back family threads it caught by mistake.

Done withClaude CoworkinGmail· Oct 25, 2026

What they did

Mollica's Gmail held about 78,700 conversations, mostly automated mail built up since 2008. She ran Claude in Cowork mode with two ways into the account: the Gmail connector, which it used to search and judge what was junk, and Gmail open in the browser pane, where it used select-all to clear thousands of threads per action. Her prompt set keep rules first (anything a family member wrote, receipts under a set age, sign-in alerts filed instead of deleted, Trash never emptied). Claude counted everything before touching it, proposed an order, then took one pile at a time: auto-generated unsubscribe mail in Sent, old calendar notifications, the Social, Promotions and Forums tabs, older Updates, expired codes, statement notices and deploy alerts. She approved each pile after seeing a sample and a count. Security alerts went into a new label with a filter for future ones.

How it went

The account went from about 78,700 conversations to 62,067, with 16,657 moved to Trash. The biggest piles were Updates older than a year (about 4,700) and roughly 2,000 calendar notifications, four of which were kept because their events were still ahead. The Forums tab turned out to be mostly phishing. One sweep scoped to her daughter's old school domain took 15 personal threads, because the daughter used that account as her own email; all 15 were restored from Trash. Gmail's bulk delete also stalled partway through Promotions and had to be re-run.

Worth knowing

Gmail deletes whole threads, so one matching message takes every reply in the conversation with it, including yours. She now has Claude search Trash for her own and family addresses after every sweep, not at the end. Trash empties itself after 30 days, which is the only undo. Claude will not sign in for you, so Gmail must already be open and logged in.

Try it

With Claude Cowork· 4 parts to fill in

Help me clear out my Gmail at [my email address], one category at a time. Use the Gmail connector to search and read, and use Gmail in the browser for the bulk deleting. Keep rules override everything: anything written by [my family's addresses] stays, receipts and travel confirmations under [N] months stay, sign-in alerts get a label instead of being deleted, and never empty Trash or delete permanently. First count what is there (All Mail, Trash, each tab, top senders) and propose an order, then wait for my go. For each pile, show me a sample and a count, wait for my go, move it to Trash, then search Trash for mail from me and from each family address and restore anything a person wrote. Report what you deleted and restored after each pile. Stop when the piles in [my list] are done.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related