How to Mass Delete Emails in Gmail (Without Losing What Matters)
category:promotions older_than:1y, tick the Select checkbox above the list, then click the link "Select all conversations that match this search" and click Delete. Everything moves to Trash, where it stays for 30 days, and it still uses storage until you empty Trash. The Gmail app selects only 50 messages at a time. Before you delete receipts, invoices or contracts, export a list of them first.Gmail doesn't have a "delete everything from 2019" button, but it has something better: any search you can type, you can select in full and delete in one go. Whether you're clearing 300 newsletters or 40,000 old notifications, the method is the same. The skill is in writing the right search and knowing what you're about to throw away.
Most guides stop at "select all and delete". This one adds the parts that cause regret later: a recipe table you can copy, a Gmail quirk where excluding starred mail doesn't fully protect it, how conversation view deletes your own replies, what happens on the phone, why Trash still uses your storage, and how to keep a record of what you deleted. Every limit below comes from Google's own help pages, linked in place.
Mass delete on desktop, step by step
This is Google's documented method from Delete messages in Gmail, plus the details that matter at scale.
- Open Gmail in a browser on your computer. The "select all matching" option is only on the desktop version.
- Type a search in the search box. Use one of the recipes below, or open a label or category from the left menu. Press Enter and check the first page: if it shows the wrong emails, the search is wrong. Fix it before you go on.
- Tick the Select checkbox at the top left, above the messages. Gmail selects the current page only and shows a notice like "All 50 conversations on this page are selected".
- Click the link in that notice: "Select all 2,000 conversations in Inbox" or, after a search, "Select all conversations that match this search". Now every result is selected, not just the page.
- Click Delete (the bin icon). Gmail asks you to confirm a bulk action. Confirm, and the conversations move to Trash.
- Empty Trash if you need the storage back now: More → Trash → "Empty Trash now". Only do this once you're sure, because after that you can't recover the messages.
If you only want the mail out of your inbox, not gone, use Archive in step 5 instead. Archived mail stays searchable in All Mail and still counts toward storage. More on choosing between the two further down.
Two things that catch people out
- You delete conversations, not messages. With conversation view on, which is the default, a search result is a whole thread. If one message in a thread matches
from:vendor@example.com, the thread is selected, including your replies and any messages from other people. For threads you care about, open the conversation and use More → "Delete this message", as Google describes, or turn conversation view off under Settings before running the bulk delete. - Excluding mail with a minus sign isn't airtight. Google warns in its search operator reference that "when you use negative search operators, conversations with excluded criteria may still appear". Its own example:
-is:starredcan return a whole conversation that contains starred messages, as long as at least one message in it is unstarred. Soolder_than:2y -is:starredcan still sweep up a thread where you starred the one email that mattered. Check the results, or move important threads to a label and exclude the label.
The deletion recipes: copy, paste, check, delete
Every operator below is listed in Google's Refine searches in Gmail page. Combine them with a space, which Gmail reads as AND. Last verified 31 Oct 2026.
| Goal | Search to paste | Check before deleting |
|---|---|---|
| Old promotions | category:promotions older_than:1y | Order confirmations and tickets sometimes land in Promotions |
| Old social notifications | category:social older_than:6m | Usually safe |
| Everything from one sender | from:news@example.com | Threads where you replied to that sender |
| A whole domain | from:@example.com | Real people at the same company, not just the robot address |
| A mailing list | list:info@example.com | Lists you still read |
| Mail before a date | before:2022/01/01 | Tax, contract and HR records (see "Before you delete" below) |
| One year only | after:2019/12/31 before:2021/01/01 | Same as above |
| Old mail that isn't starred or important | older_than:2y -is:starred -is:important | The negative-operator caveat above |
| Unread mail you clearly never wanted | is:unread older_than:6m | Security alerts and bills you never opened |
| Large emails | larger:10M | Attachments you don't have anywhere else |
| Old attachments | has:attachment older_than:1y | Invoices, signed PDFs, photos |
| A label you've finished with | label:project-2021 | Mail with several labels: it goes from all of them |
| Unlabelled old mail | has:nouserlabels older_than:3y | Google notes labels are on messages, not whole conversations |
| Several newsletters at once | from:(a@x.com OR b@y.com OR c@z.com) | Typos in an address simply return nothing |
Three syntax rules save time. older_than: and newer_than: take d, m or y (days, months, years). Dates for before: and after: are written 2022/01/01. And in:anywhere also searches Spam and Trash, so don't add it to a delete search unless you mean to.
For more operators, including filename:, deliveredto: and exact-size searches, see our Gmail search operators guide.
Which senders to delete first
Deleting by sender is the most satisfying cleanup because a handful of senders usually account for a large share of an inbox. The problem is knowing who they are: Gmail doesn't show a "top senders" list.
Two ways to find them:
- Manage subscriptions. On a computer, click More → Manage subscriptions in the left menu. Gmail lists your active mailing-list senders with the number of emails each sent recently. Google says the feature is gradually rolling out, so you may not have it yet. Click a sender to see all their mail, then select all and delete.
- Export a sender list. Export your inbox or All Mail to a spreadsheet and sort or pivot by sender. You get an exact count per address, including people and services that aren't mailing lists. Our guide who emails me the most in Gmail walks through the pivot table.
Once you have the list, delete the top ten senders with from: searches. Then stop them coming back:
| Action | What happens to future mail | Best for |
|---|---|---|
| Unsubscribe | The sender should stop. Google says it "can take a few days", and in Manage subscriptions new mail from that sender goes to Spam in the meantime | Legitimate newsletters and shops |
| Block | Future mail goes straight to Spam. Blocking "doesn't automatically unsubscribe you" | Senders who ignore unsubscribes |
| Filter with "Delete it" | Matching mail goes to Trash on arrival | Automated notifications you can't switch off |
Sources: Google's Manage subscriptions and Block an email address pages. Last verified 31 Oct 2026.
Mass delete on iPhone and Android: 50 at a time
The Gmail app can select in bulk, but only a page at a time. Google's instructions for Android and iPhone and iPad are the same:
- Open the Gmail app and, if you like, run a search first.
- Touch and hold one message.
- Tap the box next to "Select all". Google: "By default, Gmail selects up to 50 messages to delete."
- Tap Delete. For the next 50, scroll to the top and tap "Select all" again.
That's fine for a quick tidy. For anything over a few hundred messages, open gmail.com in a desktop browser, where one click selects every match. On a phone without a computer nearby, the app's search plus repeated "Select all" is the only built-in route.
Delete automatically from now on: filters
A bulk delete clears the backlog. A filter stops it building up again. Google's filter instructions:
- In the search box, click Show search options.
- Enter the criteria, for example a From address or words in the subject. Click Search to check the results look right.
- Click Create filter.
- Choose Delete it. If you also want the existing matches gone, tick the option to apply the filter to the matching conversations already in your mailbox.
- Click Create filter.
Good candidates for a delete filter are app notifications you can't switch off, automated reports you also get somewhere else, and newsletters that ignore your unsubscribe. Filters act when mail arrives, so they can't delete by age: for "anything older than a month" cleanups, such as login codes, run an older_than:1m search every so often instead. Bad candidates are anything from your bank, tax office, employer or landlord. A filter that deletes mail on arrival means you never see it, so a match that's slightly too broad can remove an important message without you ever noticing it was missing.
If you'd rather keep the mail but out of sight, choose "Skip the Inbox (Archive it)" and apply a label. You can bulk delete that label later, after checking it.
Filters live under Settings → See all settings → Filters and Blocked Addresses. Google lets you export them to an .xml file there, which is worth doing once you have a set you trust.
Before you delete: export a record
This is the step the other guides skip, and the one that matters if you're a freelancer, run a small business or ever deal with taxes, warranties or disputes. Bulk deletion is quick because you don't look at each email. That's also why it removes things you needed.
The email types people most often regret deleting in bulk:
- Receipts and invoices that support tax returns or expense claims. In the US, the IRS generally expects records supporting a return to be kept for 3 years, and longer in some cases. Our guide on how long to keep business emails lists the periods by record type, with sources.
- Order confirmations and warranties, which often sit in Promotions or Updates and get caught by a category delete.
- Account and subscription emails, which are the only record of which services use your address.
- Signed documents and attachments you don't have in Drive or on your computer.
A practical routine before any large delete:
- Run the delete search, but don't delete yet.
- Export the results to a spreadsheet. With Gmail Exporter you export the emails in that view to CSV for free, with the sender, address and subject of each one, processed locally in your browser. Dates, Excel and JSON are in the Pro plan. Name the file after the search, for example
promotions-before-2024.csv. - Scan the file sorted by sender. Anything that looks like a bank, a shop you still use, a government body or a client deserves a second look. Remove those threads from the delete (star them, label them or adjust the search).
- Save the attachments you need. Search
has:attachmentwithin the same results and download the files, or use the attachment ZIP in the Business plan. Our guide to downloading all Gmail attachments covers the free options too. - Now delete.
The spreadsheet takes a minute and gives you something Gmail never will after Trash is emptied: a list of what was there. For a full-account version of this routine, see export all Gmail before deleting.
Export before you delete
Turn any Gmail search into a spreadsheet of senders and subjects in seconds, processed in your browser, so you know exactly what you're removing. Free CSV; dates, Excel and JSON with Pro.
Add to Chrome — It's FreeDelete or archive? Pick the right action
Both actions clear the inbox. They differ in what happens next.
| Archive | Delete | Delete forever (empty Trash) | |
|---|---|---|---|
| Leaves the inbox | Yes | Yes | Yes |
| Still searchable | Yes, in All Mail | Only in Trash, for up to 30 days | No |
| Uses Google storage | Yes | Yes, until Trash is emptied or 30 days pass | No |
| Can you undo it? | Any time | Within 30 days, from Trash | Personal account: no. Workspace: admin may restore (below) |
| Use it for | Anything you might need again | Mail you're fairly sure about | Freeing storage now |
Sources: Delete messages in Gmail and How your Google storage works. Last verified 31 Oct 2026.
If your goal is a tidy inbox, archive is the safer default and costs you nothing extra while you're under your storage limit. If your goal is space, read on.
Does mass deleting free up storage?
Only once the mail leaves Trash. Google's storage page says each account "includes up to 15 GB of storage, which is shared across Gmail, Google Drive, and Google Photos", and that what counts includes "Gmail messages and attachments, which includes your Spam and Trash folders". So deleting 20,000 emails changes nothing on the storage meter until you empty Trash or the 30 days run out.
The other thing to know is that the number of emails matters far less than their size. Text-only emails are small; attachments are what fill an account. If you're deleting to get space back, start with larger:10M, then has:attachment older_than:1y, and only then the big piles of newsletters. Our guide on freeing up Gmail storage covers the storage side in depth, including Drive and Photos, and exporting large Gmail emails shows how to keep a copy of the heavy ones first.
If you hit the limit, Google says you "can't send or receive attachments" in Gmail, which is a good reason not to leave a cleanup half-finished in Trash.
How long a bulk delete takes, and why it seems stuck
Google doesn't publish a speed for bulk actions. When you delete thousands of conversations at once, Gmail processes them in the background and the list can take a while to update, or show the old count after a refresh. In practice:
- Keep the tab open until Gmail stops showing its progress notice, and don't start a second bulk action on the same mail in the meantime.
- Split very large jobs by year with
after:andbefore:. Five deletes of one year each are easier to check than one delete of five years, and if something goes wrong you know which batch it was. - Refresh and re-run the same search. If results are still there a few minutes later, select all again and repeat. Deleting something already in Trash has no side effects.
- Check Trash, not the inbox counter, to confirm the move. The unread count can lag behind.
Changed your mind? The undo windows
Mass deletion is reversible for a while. How long depends on the account type. Last verified 31 Oct 2026.
| Situation | Recovery window | Who can recover | Source |
|---|---|---|---|
| Deleted, still in Trash | Up to 30 days after deletion | You: Trash → select → Move to → Inbox | Gmail Help |
| Personal Gmail, removed from Trash | None | Google: "After that, you can't recover the message" | Gmail Help |
| Google Workspace, after the 30 days | An extra 25 days, starting 30 days after the message was deleted | An admin, with the Restore data tool | Workspace Admin Help |
| Workspace with Vault retention or a hold | As long as the rule or hold keeps it | A Vault user can search and export, but not restore to the mailbox | Same page |
| Drafts | None | Google: deleted drafts can't be recovered from Trash | Gmail Help |
To undo a mass delete within the 30 days, open Trash, run the same search there (add in:trash), select all matching, and click Move to → Inbox. Our guide to recovering deleted emails in Gmail covers what's left after that window closes.
For developers: bulk deletion with the Gmail API
If you're scripting a cleanup, the Gmail API has three deletion methods with very different consequences. All figures are from Google's Gmail API usage limits and method references. Last verified 31 Oct 2026.
| Method | What it does | Quota units | Scope needed |
|---|---|---|---|
messages.trash | Moves one message to Trash (reversible) | 20 | gmail.modify or full access |
messages.delete | "Immediately and permanently deletes" one message. "This operation cannot be undone" | 10 | Full access (https://mail.google.com/) |
messages.batchDelete | Deletes many messages by ID | 50 per call | Full access (https://mail.google.com/) |
Google's own advice on messages.delete is "Prefer messages.trash instead", and it's good advice for bulk jobs: a bug in your query then costs you a trip to Trash rather than the mail. The per-user limit is 6,000 quota units per minute, so at 20 units a call one user can trash about 300 messages a minute through messages.trash. Google also lists a daily billing threshold of 80,000,000 units per project.
Not keen on code? Apps Script can trash threads from a search on a schedule, and it runs inside your Google account.
Mistakes that make people regret a mass delete
- Deleting from All Mail with no search. Selecting everything in All Mail selects everything you have, sent mail included.
- Trusting a minus sign.
-is:starredand similar exclusions can still let whole conversations through, as Google warns. - Forgetting your own replies. Conversation view deletes threads, and your sent replies go with them.
- Emptying Trash on the same day. If you don't need the storage urgently, leave a large delete in Trash for a week. It gives you time to notice a missing receipt.
- Deleting the only copy of an attachment. Save files you need before the delete, not after.
- Building a "Delete it" filter that's too broad. A filter on a word like "invoice" or "account" will eventually catch something important. Filter on exact sender addresses.
Frequently asked questions
How do I delete thousands of emails in Gmail at once?
On a computer, search for the emails, tick the Select checkbox above the list, then click "Select all conversations that match this search" in the notice that appears, and click Delete. All matching conversations move to Trash in one action. Empty Trash afterwards if you need the storage back.
How do I delete all emails from one sender in Gmail?
Search for from: followed by the address, for example from:news@example.com, or from:@example.com for a whole domain. Select all matching conversations and click Delete. To stop new ones, unsubscribe, block the sender, or create a filter with "Delete it".
How do I delete old emails in Gmail, like everything older than two years?
Search older_than:2y, or use dates with before:2024/01/01. Add -is:starred to skip starred mail, but check the results: Google notes that negative operators can still return conversations containing excluded messages. Then select all matching and delete.
Can I mass delete emails in the Gmail app?
Partly. In the iPhone and Android app, touch and hold a message and tap "Select all". Google says this selects up to 50 messages at a time, so you repeat it for the next 50. For larger cleanups, use Gmail in a desktop browser, where you can select every result of a search at once.
Does deleting emails free up space in Gmail?
Not until they leave Trash. Google counts Trash and Spam toward your storage, which is up to 15 GB shared across Gmail, Drive and Photos on a free account. Empty Trash, or wait the 30 days, to get the space back. Attachments free far more space than text-only emails.
Can I recover emails after a mass delete?
Yes, for up to 30 days: open Trash, select the messages and move them back to the inbox. Once Trash is emptied, a personal account can't recover them. On Google Workspace, an admin has an extra 25 days to restore them with the Admin console's Restore data tool.
Why is my Gmail bulk delete not working or stuck?
Large bulk actions run in the background and the list can take a while to update. Keep the tab open, refresh, and run the same search again; if results remain, select all and repeat. Splitting the job by year with after: and before: makes each batch smaller and easier to check.
Should I archive or delete old emails?
Archive if you might need the mail again: it leaves the inbox but stays searchable in All Mail. Delete when you're sure, or when you need storage, because archived mail still counts toward your quota. Before deleting receipts, invoices or contracts, export a list of them.