- Gmail's search operators can find almost any group of emails without a third-party app.
- “Select all conversations that match this search” lets you act on thousands of messages at once.
- Always skim the first page of results and exclude starred and important mail.
- Turn your best queries into filters so the clutter never builds up again.
Why search beats an app
Gmail already includes everything you need to clean in bulk: precise search operators and a way to select every matching conversation. You see exactly what will be removed, nothing leaves your account, and no extra company gets access to your mailbox.
What you can achieve in 20 minutes
- Clear years of old promotions.
- Find and remove the biggest storage hogs.
- Archive unread bulk mail you will never read.
- Remove everything from one noisy sender.
The operators you need
| Operator | What it finds | Example |
|---|---|---|
unsubscribe | Messages containing the word — almost every newsletter | unsubscribe |
from: | A sender or a whole domain | from:shop.example |
category: | Promotions, Updates, Social, Forums | category:promotions |
older_than: | Mail older than a period (d, m, y) | older_than:1y |
newer_than: | Mail newer than a period | newer_than:30d |
larger: | Messages bigger than a size | larger:10M |
has:attachment | Messages with attachments | has:attachment |
is:unread | Unread messages | is:unread |
-is:starred | Excludes starred mail | -is:starred |
-is:important | Excludes mail Gmail marks important | -is:important |
OR and ( ) | Combine alternatives | (category:updates OR category:social) |
A minus sign in front of any operator excludes those messages.
Ready-made queries
Old promotions you never kept
category:promotions older_than:1y -is:starred -is:important
Every newsletter older than two years
unsubscribe older_than:2y -is:starred
Storage hogs
larger:10M older_than:1y
Unread bulk mail
is:unread (category:promotions OR category:updates OR category:social)
Everything from one sender
from:news@shop.example
Social notifications older than six months
category:social older_than:6m
Step-by-step: select everything and delete
- Paste a query into the Gmail search box and press Enter.
- Tick the select-all checkbox above the message list.
- Click Select all conversations that match this search when Gmail offers it. Without this step, only the first page is selected.
- Choose Archive to keep the messages out of sight, or the bin icon to move them to Bin.
- Bin keeps messages for 30 days. Empty it if you need the storage back immediately.
Scroll through the first page of results. If you see receipts, tickets or security codes, refine the query with -from: for that sender, or add -has:attachment to keep invoices.
Archive or delete?
Archive when
- You might need the mail later, for example old order confirmations.
- You want a calm inbox but not necessarily more storage.
Delete when
- You are close to your storage limit.
- The mail has no future value, such as expired promotions.
Archived mail still counts towards your storage, which Google shares across Gmail, Drive and Photos.
Free up storage the smart way
Find the biggest messages first
Start with larger:20M, then larger:10M, then larger:5M. A few hundred large messages can free more space than thousands of small newsletters.
Check attachments you saved elsewhere
If you already saved attachments to Drive or your computer, the original emails can usually go.
Remember Drive and Photos
Gmail storage is shared. If space is still tight after cleaning mail, check large files in Drive and backups in Photos.
Stop it coming back with filters
- Run a query you want to apply to future mail, such as
from:deals@shop.example. - Click the options icon at the right of the search bar.
- Choose Create filter.
- Pick an action: Skip the Inbox (Archive it), Delete it or Apply the label.
- Optionally tick Also apply filter to matching conversations.
Filters versus unsubscribing
A filter hides future mail; the sender keeps sending. For newsletters you no longer want, unsubscribe using the link next to the sender's name, and keep filters for senders that ignore requests.
A 20-minute clean-up plan
| Minutes | Task | Query |
|---|---|---|
| 0–5 | Biggest messages | larger:10M |
| 5–10 | Old promotions | category:promotions older_than:1y |
| 10–15 | Old social and updates | (category:social OR category:updates) older_than:6m |
| 15–20 | Unsubscribe from top senders | Use the Unsubscribe link next to the sender |
More useful operators for special cases
Beyond the basics, a few more operators help with specific clean-ups.
| Operator | What it finds | Example |
|---|---|---|
label: | Mail with a specific label | label:receipts |
in: | Mail in a location | in:spam, in:trash |
filename: | Attachments by name or type | filename:pdf |
before: / after: | Mail before or after a date | before:2024/01/01 |
subject: | Words in the subject line | subject:webinar |
list: | Mail from a mailing list | list:news@shop.example |
to: | Mail sent to an address | to:old-alias@example.com |
is:read | Read messages | is:read |
Combining operators
Operators can be combined freely. Spaces mean AND, OR means either, parentheses group conditions and a minus sign excludes.
(from:shop.example OR from:deals.example) older_than:6m -label:receipts
Queries for common situations
Webinar and event reminders that have passed
subject:(webinar OR "reminder") older_than:3m
Old notifications from apps and services
category:updates older_than:1y -is:starred
Large PDFs you already saved elsewhere
filename:pdf larger:5M older_than:1y
Mail sent to an old alias you no longer use
to:old-alias@example.com older_than:1y
Use labels to review before deleting
If you are nervous about deleting thousands of messages at once, label them first.
- Run your query.
- Select all matching conversations.
- Apply a label such as “To delete”.
- Browse the label for a day or two.
- When you are happy, open the label, select all and delete.
This gives you a safety net without slowing you down much.
Clean the Spam and Trash folders too
Messages in Spam and Trash are deleted automatically after 30 days, but they still count towards storage until then. Open each folder and choose “Delete all spam messages now” or “Empty Bin now” if you need space immediately.
Common mistakes to avoid
- Forgetting
-is:starredand losing starred messages. - Deleting receipts needed for returns, warranties or taxes.
- Selecting only the first page instead of all matching conversations.
- Creating a filter with “Delete it” for a sender you might need later.
- Assuming archived mail frees storage; only deleting does.
Keep Gmail tidy every month
- Unsubscribe from one or two senders you never read.
- Run
category:promotions older_than:3mand archive the results. - Check
larger:10Mfor new storage hogs. - Review your filters and remove ones you no longer need.
Ten minutes a month keeps the inbox from ever reaching the point where a big clean-up is needed.
Gmail's own subscription tools
Recent versions of Gmail include a Manage subscriptions view that lists senders you receive bulk mail from, with an Unsubscribe button beside each one. If you see it in the left menu, it is the quickest way to leave many lists without searching. It relies on each sender's List-Unsubscribe header, so it only shows senders that support the standard.
Cleaning Gmail on a phone
The Gmail app supports most search operators, but selecting thousands of results is awkward on a small screen. A good approach is:
- Run the search on your phone to check the results look right.
- Finish the bulk selection and deletion on a computer.
- Use the phone afterwards for quick unsubscribes as new newsletters arrive.
Workspace and work accounts
If you use Gmail through an employer or school, the same operators work, but your organisation may keep copies of deleted mail for legal reasons, and some content may be protected by retention rules. Check with your administrator before deleting large amounts of work mail.
Worked example: from 15 GB to 9 GB
Imagine an account at 14.6 GB of 15 GB.
larger:20Mfinds 120 messages, mostly old video and design files already saved elsewhere. Deleting them frees about 3 GB.larger:5M older_than:2yfinds 600 messages with old attachments. Deleting frees another 2 GB.category:promotions older_than:1yfinds 18,000 promotions. Deleting frees under 1 GB — small files, but a much calmer inbox.- Emptying Bin makes the space available straight away.
The lesson: start with size to free storage, and with categories to free attention.
Before and after: what a good clean-up feels like
After a first clean-up with these queries, most people notice three things: the unread count drops to something meaningful, search results become faster to scan, and the storage bar moves back into the green. Keep the queries you used in a note so the next clean-up takes five minutes instead of twenty.
Frequently asked questions
Why does Gmail only select 50 or 100 messages?
You need to click “Select all conversations that match this search” after ticking the checkbox.
Can I undo a bulk delete?
Yes, for 30 days. Open Bin, search for the messages and move them back to the inbox.
Does deleting email free storage immediately?
Messages in Bin still count until Bin is emptied or 30 days pass.
Do these operators work in the Gmail mobile app?
Most do, but selecting every matching conversation is easiest on a computer.
Will Gmail delete starred mail by accident?
Not if you include -is:starred in your query.
cleanfox.org is independent and not affiliated with Foxintelligence, NielsenIQ or any mail provider.
