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:
older_than:withdfor days,mfor months oryfor years.older_than:1yfinds everything more than a year old.before:with a date, writtenbefore:2024/01/01orbefore:01/01/2024, for mail received before that day.after:works the other way round.
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:
- Type your search, for example
older_than:1y, into the search box at the top of Gmail and press Enter. - 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.
- 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.
- Empty Trash and Spam. Google calls emptying them the quickest way to get space back. Google adds that after a big delete the storage figure can take two or three days to catch up.
- Go after attachments. A few large emails often weigh more than thousands of newsletters. Search
has:attachment larger:10Mto find emails with attachments over 10 MB. - Archiving is not the same as deleting. An archived email leaves your inbox but stays in All Mail, so as far as we can tell it still counts as Gmail mail.
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 filter. A filter set to delete or to skip the inbox sends incoming mail to Trash or archives it without you seeing it. Open Settings, then See all settings, and read through the filters tab for one that does either.
- Trash or Spam. Mail there is permanently deleted after 30 days. Search with the "Mail & Spam & Trash" option to check.
- Forwarding or POP. In Forwarding and POP/IMAP, a setting that deletes or archives Gmail's copy takes mail out of your inbox. Forwarding to an address you do not recognise can mean someone else has access to your account.
- Another device or app. An email deleted in another mail app synced to the account, such as Apple Mail, is gone from Gmail too, and some apps delete or archive mail automatically.
- Archived mail. Archived emails are not deleted. Search All Mail to find them.
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.
- Timing. A matching email is acted on within the hour it reaches the age. Turning an age rule on also works through the mail already in your inbox, so the backlog goes too, not just next month's mail.
- Trash, not a permanent delete. ClearMyInbox never deletes mail permanently. The Trash action is offered only in the builder, never on a template (Keep only the latest newsletter is the one template that sends mail to Trash), and the builder asks you to tick a box saying you understand the mail can be restored for 30 days. That is Gmail's Trash window: restore anything you want back before Gmail clears it.
- Undo. Every automated action, rules included, can be undone from History for 30 days.
- Check first. Preview shows how many emails the rule would handle before you turn it on.
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.