A query that isolates old messages carrying an attached file, handy for a cleanup.
This query isolates the old messages that carry an attached file, so you can decide which ones to delete or keep.
has:attachment older_than:6mOpen in Gmail ↗has:attachmentKeeps the messages that contain an attachment. has:older_than:6mKeeps the messages more than six months old (m stands for months). older_than: newer_than:filename:pdf older_than:6mOpen in Gmail ↗PDFs only, more than six months old.
has:attachment larger:10M older_than:1yOpen in Gmail ↗Heavy attachments more than a year old.
d, m and y are documented for older_than:: no hours, no weeks.Documented by Google · Gmail Help: search operatorslarger: isn't defined by Google's help page: 10M is written as in its own example.Not documented by Google · Gmail Help: search operators