Cleaning up and deleting

How to clean out old emails in Gmail

You don't need to read years of mail to clear it. Search by age, protect the few messages that are records, delete the rest in bulk, and deal with the senders that filled the pile.

Updated Alec Lindsay6 min read

On this page

Short version: search older_than:2y (or 1y, or 6m), keep the few messages that are records, select everything that matches and delete it, then empty Trash. That's the whole job. The rest of this page is about doing it without regretting it.

I'm Alec, founder of Gmail Unsubscribe and Baxter. People ask me about this a lot, and the honest answer is that cleaning out old mail is easy and keeping it clean is the part that takes a decision. We'll do both.

Pick an age, not a folder

Most people start by opening the inbox and scrolling. That never ends. Gmail can slice your mail by age instead, which turns an unbounded mess into a defined pile.

SearchWhat it finds
older_than:6mEverything older than six months
older_than:1yEverything older than a year
older_than:2yEverything older than two years
in:anywhere older_than:1ySame, including Spam and Trash
older_than:1y is:unreadA year of mail you never opened

Use d, m or y for days, months or years. Start with the oldest cutoff you're comfortable with, like two years. Mail that old is the safest to delete, and clearing it shows you how big the problem is. You can run it again at one year and six months later. If you want exact dates instead, searching Gmail by date covers before: and after:.

Protect what you'd miss

A date range can't tell a 2022 sale email from a 2022 tax form. Before you delete anything, check what's in the slice that you'd regret losing.

Run these on the same age:

  • older_than:2y has:attachment for documents and photos.
  • older_than:2y is:starred for anything you flagged yourself.
  • older_than:2y (receipt OR invoice OR confirmation OR statement) for records.
  • older_than:2y from:(@yourbank.com OR @youremployer.com) for the senders you can name.

Skim each list. If something is worth keeping, archive it or give it a label, so you can leave it out of the delete. Or build the exclusion into the search itself:

older_than:2y -has:attachment -is:starred -label:keep

That reads as "old, no attachment, not starred, not labeled keep." It's a blunt filter, and it will still catch some things you'd want. That's why the next step is a look before the click, not after.

Delete the rest in bulk

  1. Paste your search into the Gmail search bar and press Enter.
  2. Tick the checkbox at the top left of the list. That selects the page, about 50 conversations.
  3. Click Select all conversations that match this search. This is the step people miss, and without it you only delete 50.
  4. Click the trash icon.

If you want a safer first pass, click archive instead of delete. Archived mail leaves the inbox and stays searchable, but it keeps using storage. Deleting archived emails is a separate job for later. The mechanics of bulk selection, including on a phone, are in how to mass delete emails in Gmail.

Empty Trash, or nothing was freed

Deleted mail doesn't vanish. It sits in Trash for 30 days and keeps counting against your 15 GB of free storage. If the reason you're cleaning is a full account, open Trash and click Empty Trash now.

That's also the point of no return. Before 30 days is up you can move messages back. After you empty Trash, they're gone, and Gmail has no second recycle bin behind it. If your account is full right now, Gmail mailbox full lists what's worth deleting first, because large attachments free more space than thousands of newsletters.

Why it fills back up

Look at the From column of what you just deleted. It's almost never a thousand different people. It's a few dozen senders, repeated hundreds of times each. On the first scan of a real inbox, we find about 15 subscription senders on average, and those 15 names produced most of the mail.

So cleaning out the old mail without touching those senders is a six-month fix. The lists are still live, and the pile starts again tomorrow.

Gmail Unsubscribe scans your inbox, lists every subscription sender with how many messages they've sent, and unsubscribes through each sender's own mechanism. Free covers unlimited scans and 25 senders a month. Pro is $35.88 a year for unlimited.

Add to Chrome, free

Here's the downside, since we sell this. No unsubscribe tool clears every list. Roughly a third of unsubscribe attempts hit senders that offer no working mechanism at all. We tell you when one fails instead of marking it done. Some tools quietly file those messages to Trash and call it unsubscribed, which looks clean for a week and then the mail returns. For senders with no working option, blocking the address is the finish.

A routine so you don't redo this

You don't need to repeat the full cleanup. Once a quarter, run older_than:6m category:promotions, glance at the senders, delete the batch, and unsubscribe from anyone you didn't recognize. It takes about five minutes. For a broader routine that covers the inbox itself, cleaning your Gmail inbox without losing anything lays it out.

One caution on the opposite end: don't bulk delete from senders you might need to hear from again, like your bank, your landlord or a government agency, even if the mail is old. Filter those out by sender. For anything you're not sure about, finding old emails in Gmail shows how to search before you commit.

Common questions

How do I clean out old emails in Gmail?

Search for mail older than a cutoff, for example older_than:2y, keep anything you need as a record, then select all matching conversations and delete them. Empty Trash afterwards, because deleted mail keeps counting against your storage until you do. Working by age is faster and safer than going folder by folder.

How do I delete all emails older than a year in Gmail?

Search older_than:1y, tick the top checkbox, click "Select all conversations that match this search", and delete. Before you do, run the same search with has:attachment and is:starred to see what you would lose, since a date range has no idea which message is a tax document. Pair the age with a category (category:promotions older_than:1y) for a lower-risk first pass.

Will cleaning out old emails free up Gmail storage?

Only if you delete them and then empty Trash. Archiving removes the Inbox label and nothing else, so archived mail still counts against your 15 GB of free Google storage. Deleted mail stays in Trash for 30 days, and Gmail frees the space when it is permanently removed.

Can I get old emails back after I delete them?

For 30 days, yes. Deleted messages sit in Trash and can be moved back to the inbox. After 30 days, or once you empty Trash, they are permanently gone and Gmail has no second recycle bin. If you are unsure, archive instead of deleting for the first pass.

Why does my Gmail fill back up with old-looking mail right after a cleanup?

Because the senders are still mailing you. A cleanup removes messages, not mailing lists. A handful of newsletters and promotional senders usually produce most of the volume, so unsubscribing from them is the step that makes the cleanup last.

Want it done for you? Gmail Unsubscribe finds every mailing list in your Gmail and unsubscribes you from the ones you pick, through each sender's own unsubscribe. The free plan covers 25 senders a month, unsubscribed and cleared out.

Add to Chrome, free