Delete Old Emails in Gmail in Bulk: older_than:2y and More

The short answer
To bulk delete old emails in Gmail, search older_than:2y (y = years, m = months, d = days), tick the top checkbox, click 'Select all conversations that match this search', then Delete. Messages stay in Trash for up to 30 days; click 'Empty Trash now' to free storage straight away.
Use Gmail's older_than:2y, 5y or 6m operator, then Select all conversations that match this search to delete thousands of emails. Trash keeps them 30 days.
On this page
- 01What does older_than:2y mean in Gmail?
- 02Copy-paste older_than searches for bulk delete
- 03How to bulk delete old emails in Gmail, step by step
- 04What Gmail does with a bulk delete
- 05Does select all work on every Gmail client?
- 06What to do when bulk delete doesn't work
- 07Can Gmail delete old emails automatically?
Short answer: type older_than:2y into the Gmail search bar on the web, tick the checkbox at the top left, click 'Select all conversations that match this search', then press Delete. Change 2y to 1y, 5y, 6m or 30d for a different cutoff. Everything you delete sits in Trash for up to 30 days.
The checkbox alone only selects the 50 or so conversations on screen. The banner link that appears after you tick it is the actual bulk action, and it is the step most people miss.
- 1
Search with older_than
In Gmail on the web, type older_than:2y in the search bar and press Enter. Add exclusions now (see the examples below) so you do not catch starred, important or sent mail.
- 2
Tick the top checkbox
Click the checkbox above the message list. Gmail selects the conversations visible on this page.
- 3
Click 'Select all conversations that match this search'
A banner appears above the list. Click the link with the full count to extend the selection beyond the page.
- 4
Delete, then empty Trash
Click the Trash icon. To free storage immediately, open Trash and click 'Empty Trash now'. To keep an undo window, leave Trash alone for up to 30 days.
What does older_than:2y mean in Gmail?#
older_than: matches messages older than a time period counted back from today. The value is a number plus a unit: d for days, m for months or y for years. Google's Gmail Help page for search operators lists only those three units, so older_than:2y means older than two years, older_than:6m older than six months and older_than:30d older than thirty days. Don't rely on w for weeks; it is not listed.
Write it with no space after the colon: older_than:2y works, older_than: 2y does not behave as you expect. A search with older_than and nothing else covers your whole mailbox, not just the inbox, so it also matches archived mail, labelled mail and mail you sent. Gmail Help lists in:anywhere as the operator that includes Spam and Trash, so a plain search leaves those two out.
If you only want to find old mail, not delete it, see search Gmail by date range, which covers before: and after: with exact dates.
Copy-paste older_than searches for bulk delete#
Paste any of these into the Gmail search bar. Operators combine with a space, and a minus sign in front of one excludes it. Gmail works on conversations, so a thread containing one starred message and one unstarred message can still appear in a -is:starred search; skim the first page before you delete.
| Search | What it finds |
|---|---|
| older_than:1y | Everything older than one year, in every label including Sent |
| older_than:2y in:inbox | Old mail still sitting in the inbox, leaving archived and sent mail alone |
| older_than:5y | Everything older than five years |
| older_than:2y -is:starred | Old mail except starred messages |
| older_than:2y -label:important | Old mail except what Gmail marked important |
| older_than:2y -in:sent | Old mail without your own sent messages |
| older_than:2y has:attachment larger:10M | Old mail with big attachments, the quickest way to free space |
| is:unread older_than:2y | Old mail you never opened |
| category:promotions older_than:6m | Promotions-tab mail older than six months |
| category:social older_than:1y | Social notification mail older than a year |
| category:updates older_than:2y | Old receipts, shipping notices and account alerts |
| from:[email protected] older_than:1y | Old mail from one sender |
| label:newsletters older_than:1y | Old mail under one of your own labels |
How to bulk delete old emails in Gmail, step by step#
This is the same workflow as the short version at the top, with the checks that stop a bad batch.
- 1
Build and preview the search
Type your operator into the search bar, for example older_than:2y -is:starred in:inbox. Press Enter and read the senders and subjects on the first page. If anything looks like mail you want, tighten the search before going further.
- 2
Select the page
Tick the checkbox at the top left of the message list. Gmail selects the conversations on this page, 50 by default.
- 3
Select every matching conversation
Click 'Select all conversations that match this search' in the banner that appears. The banner only shows when the search returned more conversations than fit on one page. Skip this click and only the visible page is deleted.
- 4
Delete
Click the Trash icon, or press # if keyboard shortcuts are on. A very large batch can take a few minutes to finish in the background.
- 5
Empty Trash if you want the space back
Open Trash from the left sidebar (under More if it is hidden) and click 'Empty Trash now'. Until you do, Trash still counts against your storage. Google notes that storage figures can take up to 48 to 72 hours to update after deleting many items.
The Trash window is your only undo
What Gmail does with a bulk delete#
Deleting moves mail to Trash; it does not erase it. Gmail Help says deleted messages stay there for up to 30 days. You can recover them by opening Trash, selecting them and moving them back to the inbox.
Trash and Spam count against your 15 GB of storage, which Google shares between Gmail, Drive and Photos, until you clear them. That is why storage often does not move after a delete. For the full explanation, read why deleting did not free storage, or start with Gmail storage full: what to do. If space is the goal, find large attachments first: a handful of big files frees more than thousands of small messages.
To remove specific messages for good without waiting, open Trash, select them and click 'Delete forever'. Searching in:trash older_than:7d only finds Trash items older than a week. It does not expire or delete anything by itself; you still select the results and click 'Delete forever' or 'Empty Trash now'.
Does select all work on every Gmail client?#
Do large cleanups in Gmail on the web in a desktop browser. That is where the banner link exists, and it is the only place this guide has been written for.

| Where you use Gmail | What to expect |
|---|---|
| Gmail on the web (desktop browser) | Full operator support and the 'Select all conversations that match this search' banner |
| Gmail mobile app (iOS / Android) | Selection is limited to what is on screen. Google's help page does not describe a select-all-matches option in the app, so use the web for big batches |
| Work or school account (Google Workspace) | Same as the web. Your administrator may have set retention or deletion rules, so ask them if mail you deleted comes back or Trash behaves differently |
| Apple Mail, Outlook or Thunderbird over IMAP | These apps use their own search and generally do not understand older_than: or category:. Run the search and delete in Gmail on the web instead |
What to do when bulk delete doesn't work#
Storage didn't change. The mail is in Trash, which still counts toward your storage. Open Trash and click 'Empty Trash now', then allow time for the figure to update.
Only 50 conversations were deleted. The banner step was skipped. Repeat the search, tick the top checkbox, then click 'Select all conversations that match this search' before you press Delete.
The banner never appeared. It only shows when the search returned more conversations than fit on one page and the page checkbox is ticked. A search with fewer results than one page has nothing more to select.
Mail you expected to be gone is still there. Your search probably did not match it. A search without in:inbox covers all your mail, while one with in:inbox only covers the inbox; and a plain search leaves out Spam and Trash unless you add in:anywhere. Adjust the operators and run it again.
The delete is slow. Very large batches take a while on Gmail's side and the counts can lag. Wait a few minutes rather than starting the same delete again. If a huge batch stalls, cut it into smaller slices, for example one year of mail at a time with older_than:5y newer_than:6y.
Delete in slices if you are nervous
Can Gmail delete old emails automatically?#
Not from older_than alone. A Gmail filter is applied when mail arrives, and the option to apply it to existing conversations runs once, so a filter built on older_than will not keep deleting mail as it ages. I could not find an age-based auto-delete setting in Gmail Help, so for recurring cleanup you repeat the search, or use a script or a tool built for it.
AI Emaily, the email client we build, does not auto-delete by age either. Its rules act on mail as it arrives and can archive, label, mute, snooze, mark read or move newsletters and promotions into their own tab, so the pile is smaller when you next run a bulk delete. Rules can also be re-run on demand against mail already in the inbox. Rules work across Gmail, Outlook and other connected accounts, and there is a 7-day free trial on Pro and Autopilot. See pricing for the current plans.
Frequently asked
See it in AI Emaily
Keep reading
Sources

Written by
Nafiul HasanNafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.