Introduction
This article describes how to bulk delete email in both Exchange Online and Gmail. If you have 10s of thousands of messages, the purging operation will likely time out after running for a while. Therefore, you may have to repeat the procedure until all emails are deleted.
Instructions
Exchange Online
For a generic date range
- In the Outlook Web Application (OWA), go to the Settings gear at top right.
- Click General in left navigation pane.
- Click Storage in middle navigation pane. You'll see all your folders sorted by size and message count.
- Select a folder you'd like to purge, and chose the date range: All or 3/6/12 months and older.
For a specific date range
- In the Outlook Web Application's search bar, type the query 'Received:<1/1/2024' where the date is the newest date that you want returned in the search.
- You can use the same query in the desktop application.
- Scroll down to the end of the list to ensure all emails are loaded.
- Click Delete All.
- Click ok.
Gmail
- In the search bar, type the query 'older_than:1y' where “1y” is a period that suits your needs.
- “y” is years
- “m” is months
- “d” is days
- Select all the messages using the checkbox in the toolbar.
- You will see, “All 50 conversations on this page are selected. Select all conversations that match this search” above the selected messages in a gray text box. The number “50” can be different depending on your settings.
- Click on the Select all conversations that match this search link.
- Click the trash icon.
- Click ok.