How to delete emails with attachments in Gmail
TL;DR
- By default, Clean Email never deletes any message that has an attachment — it's protected outright, no matter how old it is.
- This is a safety rule, not a bug: it stops photos, invoices, contracts, and other files you might still need from being cleared out with old newsletters.
- You can still include attachment mail in a cleanup on purpose, by using the has:attachment Gmail search operator to target it directly.
- Check the matching emails carefully before deleting: once a message with an attachment is removed this way, the file inside it goes with it.
This page explains why Clean Email leaves attachment-carrying mail alone by default, and the steps to take if you specifically want to clear out emails that have files attached.
Why Clean Email protects emails with attachments
Any message with an attachment of any kind — a document, image, PDF, video, or audio file — is on Clean Email's permanent protected list.
This protection is automatic. You don't need to star, label, or whitelist anything; a message qualifies for protection the moment it carries a file.
The reason is simple: attachments often hold something you'd regret losing, like a signed contract, a tax invoice, a boarding pass, or family photos, even in an otherwise old or unimportant-looking email.
Clean Email never deletes just the attachment and keeps the email text. It's all or nothing: either the whole message stays protected, or you choose to unprotect it and the whole message can be deleted.
How protection is enforced
Attachment protection, like every other protection rule, is checked twice so it can't be skipped by accident.
First, it narrows the Gmail search query up front, so messages with attachments are excluded from the candidate list before a cleanup even starts.
Second, right before deletion, each message is checked again individually. This second check is the authoritative guard, so protection holds even if a Gmail search operator behaves unexpectedly.
How to deliberately include attachment mail in a cleanup
If you do want to clear out emails that have files attached — for example, years of old photo attachments or large receipts you no longer need — you can target them directly using Gmail's has:attachment search operator.
Combine has:attachment with other operators to narrow the target further, so you delete only what you actually mean to.
- has:attachment older_than:2y — attachments older than two years
- has:attachment larger:10M — large attachments taking up storage space
- has:attachment from:example.com — attachments from one specific sender or domain
- has:attachment category:promotions — attachments sent as part of marketing or newsletter mail
Warning: check before you delete
Deleting a message with an attachment removes the file inside it too — there is no way to keep only the attachment or only the email text.
Before running any cleanup that targets has:attachment, review the matching emails and confirm none of them are messages you'd want to keep, such as receipts, contracts, or photos with no other copy.
By default, deleted mail moves to Gmail Trash, where it stays recoverable for 30 days like any normal Gmail deletion. Permanent deletion is only available as an explicit opt-in and is irreversible, so it's worth using Trash as the default choice if you're unsure.
FAQ
- Does Clean Email delete emails with attachments?
- No, not by default. Any message with an attachment (document, image, PDF, video, or audio) is protected outright and skipped during a normal cleanup, regardless of age.
- How do I delete emails with attachments in Gmail?
- Type has:attachment in the Gmail search bar to find every message with a file attached. You can combine it with other operators, like has:attachment older_than:2y, to narrow the results before deleting them.
- Can I clear out old attachments without deleting the email?
- No. Clean Email never separates an attachment from its email; a message is either kept whole or deleted whole. There is no option to strip just the attachment and keep the message text.
- Is it safe to delete emails found with has:attachment?
- Only if you check them first. has:attachment matches every attachment type, including invoices, contracts, and photos, so review the results before deleting to make sure nothing important is included.
- What happens to an email with an attachment once it's deleted?
- By default it moves to Gmail Trash along with its attachment, and stays recoverable there for 30 days, just like any normal Gmail deletion. Permanent deletion is only available as an explicit opt-in and cannot be undone.
Sources
Sign in with Google, scan your mailbox for free, then clean it in one click.
Clean your Gmail inbox nowUpdated: 2026-07-29