Email

Bulk-Clean an Old Inbox Safely: Dry Run, Exceptions, Then Label in Batches

Published · Updated

On a 40-email sample inbox, our dry run proposed labeling 24 emails. It also caught 3 receipts we'd have lost. With 2 exceptions added: 21 to label, 0 receipts or security alerts touched, 0 deleted. Gmail's documented actions include labels, so we clean by label.

On a 40-email sample inbox, our first dry run proposed labeling 24 emails, and 3 of them were receipts. We added 2 exceptions and ran it again: 21 to label, 0 receipts or security alerts touched, 0 deleted. For anyone sitting on years of mail. Cost: a few chats. You do the final delete or archive in your mail app.

Terminal: dry run on 40 sample emails. Rule R2 (shoeshop.example older than 1 year) matches 9 emails, including 2 receipts shown in red; after adding exceptions for "receipt" and the bank's alert address, R2 matches 6 and the total drops from 24 to 21
Our run, 2026-10-21, on a sample mailbox we wrote (fictional senders). Nothing changed. Our screenshot.

People do run big cleanups this way. One user reports 5,000 deleted in a day:

Whole post by @sevefamily on X, Oct 16 2026, text only: "I use grok bot to automate deleting emails I've built up since 2015. I've never had the time and grok bot has taken out the trash. 5,000 so far in 24hrs."
Post by @sevefamily, 2026-10-16. Original on X. Their screen, not ours. This is the author's own report, and we haven't tested it. Our recipe labels emails instead of deleting them, and you do the final delete yourself.

What you get

  • A rule table with match counts and sample emails, before anything changes.
  • A cleanup label you can review, then archive or delete in one go yourself.
  • Still needs you: connecting Gmail, approving each rule, and the final delete.

Tested on: 2026-10-21, our AgentSpoon box. Partial. We ran the dry run, the exceptions and the batched labeling for real, on a local sample of 40 emails we wrote. No real mailbox was connected or touched. Gmail facts come from the live Connect apps page: "Gmail can search and read mail, draft and send, and apply labels on the connected mailbox." All 5 quotes were found.

Terminal log: Connect apps page 3 of 3 quotes found; How Tos 1 of 1; Routines 1 of 1
Docs check, 2026-10-21. Our screenshot.

Step 1: Connect the mailbox

Follow the Connect card, or use Connect apps in the sidebar. "Gmail connects one mailbox at a time", and "It can do only what that account can already do in that service."

✅ You should see: Gmail under Installed.

Step 2: Ask for rules and a dry run only

Propose up to 6 cleanup rules for my inbox (old newsletters, promotions, notifications).
For each: how many emails match, 5 sample senders and subjects, and the label you'd add (cleanup/<rule>).
Dry run only. Change nothing. Never touch mail from: <EXCEPTIONS>.

✅ You should see: a rule table with counts and samples, and nothing changed.

Step 3: Read the samples and add exceptions

This is where our run caught a real mistake. A sender rule for an old shop's address also matched that shop's receipts. We added "receipt" and the bank's security-alert address as exceptions, and the count dropped from 24 to 21.

✅ You should see: no receipts, security alerts or personal mail in any sample.

Step 4: Approve one rule, label in batches

Apply rule R1 only: add the label cleanup/R1, in batches of 200. Report after each batch and wait for my OK.
Terminal: rule R1 labeled in batches of 5 on the sample (5, then 3), with a pause after each; check: 8 labeled, all newsletters, 0 of 5 receipts or security emails labeled; deleted 0, archived 0
Our run on the sample file, in batches of 5 because the sample is small, 2026-10-21. Our screenshot.

✅ You should see: a report after each batch, and a check that protected mail wasn't labeled.

Step 5: Do the final clean yourself

Open the label in Gmail, skim it once more, then archive or delete everything in it. Deleting can be permanent once the trash empties, and labeling is easy to undo.

✅ You should see: the label empty and your inbox shorter.

Gotchas

  • Sender rules catch receipts. Ours did. Always read the samples.
  • Big mailboxes mean many batches. "Each run spends usage" (Routines), so spread the work over a few sessions.
  • One Gmail at a time. To clean another mailbox, disconnect the first.
  • Unsubscribing contacts the sender. Do it yourself, one sender at a time.

FAQ

Can it delete or archive thousands of emails at once? The Connect apps page lists search, read, draft, send and labels for Gmail. It doesn't list archive or delete, so this recipe labels, and you archive or delete the label yourself in Gmail.

Will it unsubscribe me from lists? Clicking an unsubscribe link contacts the sender. Ask it to list unsubscribe candidates, and do the unsubscribing yourself.

Sources

  • Grok Bot help: Connect apps, How Tos, Routines. Checked 2026-10-21.
  • Our run: 40-email sample mailbox, dry run + exceptions + batched labels, 2026-10-21.