Tech is Easy logoTech is Easy

How to Delete All Emails Before a Certain Date in Gmail

Updated Nov 14, 2026Time needed: 1 minuteWindows PC or Mac (Gmail in a browser)

To delete all emails before a certain date in Gmail, type before: followed by the date in the search bar (for example before:1/1/2023), press Enter, select all the results and click the Delete icon. It is the quickest way to bulk delete old emails when your inbox or storage is getting full.

How to Delete All Emails Before a Certain Date in Gmail video

Before you start

1Click the Gmail search bar

Open Gmail in your browser and click the Search mail bar at the top.

Gmail inbox with an arrow pointing to the Search mail bar

2Type before: and the date

Type before: followed by the date you want, written in the normal date format. In our example it is before:1/1/2023, which finds every email received before 1st January 2023. Leave no space after the colon.

Gmail search bar with before:1/1/2023 typed in

3Press Enter to see the results

Press Enter. Gmail now lists only the emails older than that date. Scroll through and check the dates on the right to confirm they are all before the date you typed.

Gmail search results for before:1/1/2023

4Select all the emails

Click the select-all checkbox at the top left of the list. If your results run across more than one page, Gmail shows an option at the top to select all the emails that match the search. Click it so you don't delete only the first page.

Gmail search results with every email selected and the toolbar showing

5Click Delete

Click the Delete (bin) icon in the toolbar. Every selected email is moved to Trash.

Cursor on the Delete icon in the Gmail toolbar

Narrow the search before you delete

You don't have to wipe everything before a date. Google's own list of Gmail search operators shows terms you can add to before: in the same search box, so only the clutter goes: - before:2023/01/01 category:promotions finds only old promotional emails, if you use inbox categories. category:social and category:updates work the same way. - before:2023/01/01 -is:starred skips anything you starred, so emails you marked as important to keep are left alone. - before:2023/01/01 has:attachment or larger:10M finds old emails with attachments or big files, which take up the most storage. - after:2020/01/01 before:2021/01/01 finds only the emails from one year. - older_than:1y finds everything older than one year from today. You can use d for days, m for months and y for years, for example older_than:2y.

Run the search, check the results, and then follow Steps 4 and 5 to delete them.

Tips / troubleshooting

Want to tidy up by sender instead of by date? See how to clean up your Gmail inbox fast.

FAQ

What date format does the Gmail before: search use?

In the video the date is typed as before:1/1/2023 and Gmail reads it as 1st January 2023. Gmail also accepts the year-first format, such as before:2023/01/01, which avoids any day and month mix-up.

How do I delete emails in bulk in Gmail?

Search for the emails you want (by date, sender or keyword), tick the select-all box, click the option to select all matching conversations if it appears, then click Delete. The same steps work for any search, not just dates.

How do I delete emails older than one year in Gmail?

Search for older_than:1y, select all the results, click the option to select every matching conversation, then click Delete. Change the number to clear older mail, for example older_than:3y for anything over three years old.

How do I delete emails between two dates?

Combine both operators in one search, such as after:2020/01/01 before:2021/01/01. Gmail lists only the emails received in that range, and you delete them the same way as in Steps 4 and 5.

Can I get the deleted emails back?

Yes, for a while. Deleted emails go to Trash first, and Gmail keeps them there for 30 days before removing them for good. Open Trash, select the emails and move them back to your inbox if you deleted something by mistake.

Does deleting old emails free up Gmail storage?

Emails in Trash still count toward your storage until Trash is emptied. To get the space back straight away, open Trash and empty it, or follow our guide on how to clear Gmail storage.