The fastest way to delete old emails
Open Gmail and go to the search box at the top. Type before:2023/01/01 (or whatever year you want) to show only emails from before that date. Gmail will display all matching messages. Click the checkbox at the top left of the email list — the one above all the individual checkboxes — to select every email on that page. A banner will appear saying "All X conversations on this page are selected." Click the link that says "Select all conversations that match this search" to select every email that matches your search, not just the ones visible on screen. Then click the trash icon (or the three-dot menu and choose Delete) to move them all to Trash at once.
The emails sit in Trash for 30 days before Gmail deletes them permanently. If you change your mind during that time, open Trash, find the emails, and click the restore arrow to move them back to your inbox. After 30 days, they are gone for good.
Key Takeaways
- Use the search operator before:YYYY/MM/DD to find all emails from a specific date backward, then select all results at once and delete them.
- Deleted emails go to Trash first and stay there for 30 days, giving you time to restore them if you delete by mistake.
- You can also search by sender, label, or size — for example, from:newsletter@example.com before:2022/01/01 — to delete specific types of old mail.
- Permanently emptying Trash removes all deleted emails at once; Gmail does not offer a way to empty Trash on a schedule automatically.
How to search for emails by date and other details
Gmail's search operators let you narrow down which old emails you want to delete. The before: operator shows emails sent before a date you choose. The format is always before:YYYY/MM/DD — for example, before:2020/06/15 shows every email from June 15, 2020, and earlier. You can also use after: to find emails from a certain date forward, or combine them: after:2020/01/01 before:2020/12/31 shows only emails from the year 2020.
Add other details to narrow the search further. Type from:sender@example.com before:2022/01/01 to delete old emails from one person. Use label:Promotions before:2021/01/01 to delete old promotional emails. You can also search by size with larger:10M to find emails with large attachments that take up storage space. Combine as many operators as you need in one search box.
After you run a search, scroll through the results to make sure they are the emails you want to delete. It is easier to check a few pages than to undo a large deletion, even though you can restore from Trash.
Selecting and deleting all results at once
Once your search results show the emails you want to delete, click the checkbox at the very top left of the email list — directly above the first email. This checkbox selects all visible emails on the current page only. Gmail then shows a message: "All X conversations on this page are selected." Below that message, you will see a link that says "Select all conversations that match this search." Click that link. Now every email matching your search is selected, even the ones on pages you have not scrolled to yet.
With all emails selected, click the trash icon in the toolbar at the top of the email list. If you do not see a trash icon, click the three-dot menu (more actions) and choose "Delete." All selected emails move to Trash when ready. The page refreshes and shows your inbox again, now without those emails.
Understanding what happens after you delete
Deleted emails do not disappear right away. They move to the Trash folder, where they stay for 30 days. During this time, you can still see them, read them, and restore them. Open the Trash folder from the left sidebar (you may need to click "More" to see it), find the email you want back, click it, and click the restore arrow. The email returns to your inbox or its original label.
After 30 days, Gmail automatically and permanently deletes everything in Trash. You cannot recover emails after this point. If you want to delete emails permanently before the 30 days are up, open Trash, select the emails you want gone for good, and click "Delete permanently" from the menu. This action cannot be undone.
Emptying Trash to free up storage space
If you have deleted many emails and want to free up storage space when ready, you can empty Trash yourself instead of waiting 30 days. Open the Trash folder, click the "Delete all" button or link at the top (the exact wording varies by device), and confirm. Every email in Trash is permanently deleted. This action is final — you cannot restore emails after Trash is emptied.
Gmail does not have a built-in way to empty Trash automatically on a schedule. If you want to delete old emails regularly without doing it by hand, you can set up a filter to skip the Trash step entirely. Create a filter (in Settings, under Filters and Blocked Addresses) that matches old emails by date or sender, then choose "Delete it" as the action. New emails matching that filter will be deleted automatically, though this method works only for incoming mail, not for emails already in your inbox.
Why you might want to delete old emails
Gmail accounts come with 15 GB of free storage shared across Gmail, Google Drive, and Google Photos. Deleting old emails with large attachments — especially photos and videos — can free up space if you are running low. Emails with attachments take up more storage than text-only messages, so searching for has:attachment before:2020/01/01 finds old emails with files attached.
Deleting old emails also makes your inbox easier to search and navigate. A smaller inbox loads faster and is less cluttered. Some people delete emails older than a certain date as a regular habit, while others keep everything. There is no right answer — it depends on how much storage you use and how much history you want to keep.
Frequently Asked Questions
Can I undo a delete if I already emptied Trash?
No. Once you empty Trash or the 30-day period passes, the emails are permanently gone. Gmail does not have an undo button for permanently deleted mail. This is why it is a good idea to check your search results before selecting all and deleting — a few minutes of review can prevent losing emails you wanted to keep.
What if I want to delete emails but keep the attachments?
Gmail does not have a built-in tool to save attachments in bulk and then delete the emails. You would need to read attachments one by one or use a third-party tool. For a small number of emails, open each one, click the attachment, and save it to your computer before deleting the email.
Do deleted emails count against my storage quota while they are in Trash?
Yes. Emails in Trash still use storage space. They only stop counting against your quota after the 30 days pass and Gmail permanently deletes them, or after you empty Trash yourself. If you need to free up space right away, empty Trash rather than waiting.
Can I search for emails by how old they are instead of by date?
Gmail does not have an operator like "older than 2 years." You have to calculate the date yourself. If today is 2024 and you want emails older than 2 years, search for before:2022/01/01. Gmail's search operators work only with specific dates, not relative time periods.
What is the difference between archiving and deleting?
Archiving removes emails from your inbox but keeps them in Gmail. You can still search for them and restore them to your inbox anytime. Deleting moves emails to Trash and eventually removes them permanently. Archive is useful if you want to clean up your inbox without losing the emails; delete is for emails you no longer need.