WholeTech · Field Guide

Clean Up Gmail

The search-and-sweep method · paste-ready queries · works on a quarter-million emails
Updated 2026-12-03

The one idea

You never clean an inbox by reading it. You write a search that isolates one kind of junk, let Gmail show the count, then delete everything that matches in one move.

A quarter-million emails is not a reading problem, it is a filtering problem. Gmail's own search bar is the tool. Everything below is just good searches plus one button most people never notice: Select all conversations that match this search.

Two facts that decide where the real wins are. First, your 15 GB is shared across Gmail, Drive, and Photos, so a full account is often Drive and Photos, not mail. Second, plain text email is tiny. Deleting a few hundred notes frees almost nothing. Attachments are where the space hides, so chase size before you chase count.

The sweep, step by step

Do this once per query below. Use Gmail on the web, not the phone app. The app cannot run these operators or the select-all.

  1. Paste a query into the Gmail search bar and press Enter. Gmail shows how many conversations match, so you see the scale before you touch anything.
  2. Click the checkbox at the top left to select the visible page. A line appears: Select all conversations that match this search. Click it. Without this you only grab the 50 on screen.
  3. Click the trash can. Gmail acts in batches of up to 1,000, so a huge match may need a few repeats until the count hits zero.
  4. When you are done sweeping, open Trash and empty it, and do the same with Spam. Deleted mail keeps counting against storage until it leaves the Trash.

Why the 30-day thing matters

Deleting moves mail to Trash, where it sits for 30 days and still counts against your storage. To actually free space now, empty the Trash by hand. The flip side is your safety net: anything you delete is recoverable for 30 days.

Paste-ready queries

Work top to bottom. The first group is almost always pure noise and safe to clear. The storage group frees the most actual space. Hit Copy, paste into Gmail search, sweep, move on.

Biggest safe wins — old bulk mail nobody reads

category:promotions older_than:2y
category:social older_than:2y
category:updates older_than:1y is:unread
from:(noreply OR no-reply OR donotreply) older_than:2y

Promotions, social, and no-reply robots you never opened. The is:unread on updates keeps anything you actually read.

Storage hogs — the real space wins

larger:10M
has:attachment larger:10M older_than:1y
has:attachment larger:5M before:2024/01/01

One pass at big old attachments can free gigabytes while a thousand text emails free almost nothing. Save anything worth keeping to Drive first, then delete the mail.

Dead newsletters and lists

unsubscribe older_than:2y is:unread
list:(*) older_than:3y

Mailing-list mail you never opened. Unsubscribe from the live ones (next section) so they stop refilling.

By sender — find your worst repeat offenders

from:example@sender.com
from:example@sender.com older_than:1y

Swap in a real address. Each sender search shows a count instantly, so you learn where the bulk lives, then decide per sender. Your noisiest senders usually account for a shocking share of the pile.

Nervous about a sweep? Protect the keepers

category:promotions older_than:2y -is:starred -is:important

Add -is:starred -is:important to any query to spare flagged and important mail. Add -has:attachment to spare anything with a file.

Stop it filling back up

Clearing once is half the job. Shut off the faucet or you are back here in a year.

Safety rules

Recoverable for 30 days

Everything you delete sits in Trash for 30 days before it is gone for good. A mistaken sweep is undoable for a month, so you can move boldly.

Shield the irreplaceable

Star or mark important anything you cannot lose, then add -is:starred -is:important to your queries. Watch the match count before every delete, and never select-all-matching on a bare from: you have not eyeballed.

Mind the shared 15 GB

If the account is still full after a big mail sweep, the space is in Drive or Photos, not Gmail. Check Google One storage and clear large Drive files and backed-up full-resolution photos there.

Sources

A WholeTech field guide · built for Paul's own inboxes, shareable as-is.
Guidance is practitioner advice plus Google's storage docs. Gmail's interface wording may shift over time.

Copied to clipboard