Cleanfox

Bulk-clean Gmail without any app: search operators that work

Gmail’s search box can find thousands of newsletters, old promotions and huge attachments in seconds. Copy these queries and clean up yourself.

Updated 12 Nov 2026 Last verified 12 November 2026
Gmail inbox showing 14 GB of 15 GB storage used, with a Clean button.
Key takeaways
  • 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

OperatorWhat it findsExample
unsubscribeMessages containing the word — almost every newsletterunsubscribe
from:A sender or a whole domainfrom:shop.example
category:Promotions, Updates, Social, Forumscategory:promotions
older_than:Mail older than a period (d, m, y)older_than:1y
newer_than:Mail newer than a periodnewer_than:30d
larger:Messages bigger than a sizelarger:10M
has:attachmentMessages with attachmentshas:attachment
is:unreadUnread messagesis:unread
-is:starredExcludes starred mail-is:starred
-is:importantExcludes 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

  1. Paste a query into the Gmail search box and press Enter.
  2. Tick the select-all checkbox above the message list.
  3. Click Select all conversations that match this search when Gmail offers it. Without this step, only the first page is selected.
  4. Choose Archive to keep the messages out of sight, or the bin icon to move them to Bin.
  5. Bin keeps messages for 30 days. Empty it if you need the storage back immediately.
Before you bulk delete

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

  1. Run a query you want to apply to future mail, such as from:deals@shop.example.
  2. Click the options icon at the right of the search bar.
  3. Choose Create filter.
  4. Pick an action: Skip the Inbox (Archive it), Delete it or Apply the label.
  5. 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

MinutesTaskQuery
0–5Biggest messageslarger:10M
5–10Old promotionscategory:promotions older_than:1y
10–15Old social and updates(category:social OR category:updates) older_than:6m
15–20Unsubscribe from top sendersUse 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.

OperatorWhat it findsExample
label:Mail with a specific labellabel:receipts
in:Mail in a locationin:spam, in:trash
filename:Attachments by name or typefilename:pdf
before: / after:Mail before or after a datebefore:2024/01/01
subject:Words in the subject linesubject:webinar
list:Mail from a mailing listlist:news@shop.example
to:Mail sent to an addressto:old-alias@example.com
is:readRead messagesis: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.

  1. Run your query.
  2. Select all matching conversations.
  3. Apply a label such as “To delete”.
  4. Browse the label for a day or two.
  5. 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:starred and 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

  1. Unsubscribe from one or two senders you never read.
  2. Run category:promotions older_than:3m and archive the results.
  3. Check larger:10M for new storage hogs.
  4. 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:

  1. Run the search on your phone to check the results look right.
  2. Finish the bulk selection and deletion on a computer.
  3. 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.

  1. larger:20M finds 120 messages, mostly old video and design files already saved elsewhere. Deleting them frees about 3 GB.
  2. larger:5M older_than:2y finds 600 messages with old attachments. Deleting frees another 2 GB.
  3. category:promotions older_than:1y finds 18,000 promotions. Deleting frees under 1 GB — small files, but a much calmer inbox.
  4. 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.