Skip to content
By ClearMyInbox · Updated

How to automatically delete emails in Gmail

To automatically delete emails in Gmail once they get old, you need a workaround: Gmail has no setting for it, and only empties Trash and Spam by itself, after 30 days. Search for old mail with older_than: and delete it by hand, or use a rule that sends each email to Trash as it reaches an age.

Try ClearMyInbox free - bulk unsubscribe in one click, free to start.

Does Gmail delete old emails automatically?

Only in two places. Google's help says that emails in your Trash or Spam are permanently deleted after 30 days. You can also empty either folder yourself before then. Everything else stays where it is, however old: your inbox, your labels and All Mail keep every email until you delete it.

So when you delete a message, it is not gone at once. It moves to Trash, where you can still get it back for up to 30 days, and Gmail deletes it for good after that. Google warns that a permanently deleted message cannot be recovered, so those 30 days in Trash are your safety net.

How to delete emails older than a date in Gmail

Gmail's search box understands dates, so the quickest way to clear out old mail is a search followed by one delete. Google's search operators for this are:

You can narrow the search with other operators: older_than:6m from:shop@example.com keeps the delete to one sender, and older_than:1y category:promotions to the Promotions tab. Then, on a computer:

  1. Type your search, for example older_than:1y, into the search box at the top of Gmail and press Enter.
  2. Check the Select box at the top left. Gmail selects the conversations on the page and shows a link to select every conversation that matches the search. Click it.
  3. Click Delete.

Look through the results before step 3. A search for old mail catches receipts, tickets and letters from people as well as newsletters, and the delete takes all of them to Trash. If the old mail you want gone is mostly marketing, deleting all promotional emails in Gmail walks through the Promotions tab step by step.

On the Gmail app for Android or iPhone

Google's app steps are slower. Touch and hold a message, tap the box next to Select all at the top left, then tap Delete. The app selects up to 50 messages at a time, so for a big batch you scroll back to the top and repeat. Type a search operator such as older_than:1y into the app's search bar first, so that only old mail is on screen. For thousands of emails, use Gmail on a computer.

Can a Gmail filter delete old emails automatically?

Not as they age. Google presents filters as a tool for incoming mail, and the jobs it lists for them (label, archive, delete, star, forward) are all done at the point an email is filtered, as it comes in. A new email is never old when it arrives, so a filter with older_than: in it has nothing to act on later. Nothing in Gmail goes back each day to check what has passed an age.

What a filter can do is delete a sender's mail as it lands. Search for from: and the address, click Create filter, tick Delete it and save. The full steps for building one are in how to create rules in Gmail. Bear in mind that a filter that deletes every email from a sender means you never see them at all, so for a mailing list, unsubscribing is usually the better fix.

How to keep just the latest email from a sender

Some senders only matter for their latest email: the current statement, the newest delivery update, this week's issue of a newsletter. Gmail has no filter action for this, because a filter looks at the email in front of it, not at the sender's other emails. By hand, you search from: the sender, tick every result except the top one and delete them, and then do it again next week.

ClearMyInbox does this with Keep newest: the sender's latest email stays in your inbox and the older ones there go to Trash. The Keep only the latest newsletter template does the same for newsletters, and the first time it matches it also sends the older issues already in your inbox to Trash.

Does deleting emails free up storage in Gmail?

Yes, but not straight away. Your Google storage, 15 GB on a free account, is shared between Gmail, Google Drive and Google Photos, and Google counts Gmail messages and attachments in it, including the ones in Spam and Trash. A deleted email keeps using space until it is permanently deleted: when Gmail clears it from Trash after 30 days, or when you empty Trash yourself with Empty Trash now.

Why do emails disappear without being deleted?

If mail is going missing and you did not delete it, something else is moving it. Google's list of causes for missing Gmail includes:

A rule that deletes Gmail emails by age, with ClearMyInbox

ClearMyInbox gives Gmail the missing piece: a rule that acts on an email when it reaches an age, not when it arrives. In the rule builder, add the condition Older than with a number of days (any whole number from 1 to 3650) and choose the action Trash. Add a condition such as Sender is, Domain is or Has an unsubscribe link if only some old mail should go, since every condition in a rule must be true.

Not sure you want old mail gone? The Archive old mail template archives anything still in your inbox after 30, 90, 180 or 365 days (90 by default) and asks you to confirm first. Archived mail stays in All Mail and search, so it still counts as Gmail mail: choose Trash when space is the goal.

Because the rules run on ClearMyInbox's servers, an age rule keeps working with your laptop shut and Gmail closed. ClearMyInbox connects through your Google sign-in and needs Google's permission to change your mail. It reads headers such as sender, subject and date, never the body of an email, and it creates no Gmail filters. Age rules are part of the Casual and Professional plans, and of Lifetime. A Free account sees them locked, and any rule built there is kept for when the account upgrades.

If your inbox needs more than old mail gone, how to clean up a Gmail inbox covers the order to do things in.