The fastest way to clear your entire Gmail inbox

You can delete all your Gmail messages in one action by selecting them all at once, but Gmail does not offer a single "delete everything" button. Instead, you search for all mail, select all results on the page, then delete them in batches. The process takes a few minutes and works the same way on a computer or phone, though a computer is easier because you can see more messages at once.

The key thing to understand: Gmail only shows you about 50 messages per page, so if you have thousands of emails, you will need to repeat the selection and deletion step multiple times. Each time you delete a batch, Gmail loads the next batch automatically, so you keep going until the inbox is empty.

Key Takeaways

  • Gmail deletes messages in batches of roughly 50 at a time, so clearing a full inbox takes several rounds of selecting and deleting.
  • You must search for "in:anywhere" first to pull up all your mail, including archived and labeled messages, not just your inbox.
  • After you delete messages, they sit in Trash for 30 days before Gmail removes them permanently — you can recover them during that time if you change your mind.
  • If you want to keep certain messages, use filters or labels to separate them before you start deleting, because the bulk delete cannot be undone once the 30-day trash period ends.

How to select and delete all messages on a computer

Open Gmail in your web browser and go to the search box at the top of the page. Type in:anywhere and press Enter. This search pulls up every message in your account — inbox, archive, labels, everything. Without this search, you would only delete messages in your current inbox view.

At the top left of the message list, you will see a checkbox with a small arrow next to it. Click that checkbox. A menu will appear asking "Select all conversations that match this search." Click that option. Gmail will now mark every message from your search as selected, even the ones you cannot see on the current page.

A yellow banner will appear at the top saying something like "All 5,000 conversations selected." Click the trash or delete icon (usually a trash can symbol) in the toolbar above the message list. Gmail will move all selected messages to Trash.

After the first batch deletes, Gmail automatically loads the next batch of messages. Repeat the same steps: click the checkbox at the top left, select all conversations that match the search, then click delete. Keep doing this until no more messages appear and the inbox shows "No conversations match your search."

How to delete all messages on a phone or tablet

Open the Gmail app and tap the search icon at the top. Type in:anywhere and search. This pulls up all your messages the same way it does on a computer.

Tap and hold on the first message in the list until it highlights. A menu will appear at the top with a trash icon. Tap the three-dot menu icon instead and look for "Select all" or a similar option. If you do not see "Select all," tap the checkbox next to each message you want to delete — on a phone this is slower, so consider using a computer if you have many messages.

Once messages are selected, tap the trash icon to delete them. Repeat this process for each batch that loads. The phone version is slower than the computer version because you cannot select as many messages at once, but the steps are the same.

What happens to deleted messages and how to get them back

When you delete a message, Gmail moves it to your Trash folder, not out of your account entirely. Messages stay in Trash for 30 days. During that time, you can recover any message by opening Trash, finding the message, and moving it back to your inbox or another label.

After 30 days, Gmail permanently deletes the message and you cannot recover it. If you realize you deleted something important within those 30 days, open the Trash folder, search for the message by sender name or subject, and click the message to open it. Then click the move icon (usually an arrow or folder symbol) and choose where to move it.

How to protect important messages before you delete everything

If you want to keep certain messages but delete the rest, create a label for them first. Open a message you want to keep, click the label icon, and create a new label called something like "Keep" or "Archive." Repeat for all messages you want to save.

Then, before you search for "in:anywhere," click on the label dropdown and select "All Mail" instead. This shows you everything except the labeled messages you want to keep. Now you can delete all the visible messages without touching your important ones.

Alternatively, you can search for specific types of messages to delete only those. For example, search for before:2020 to delete only messages from before 2020, or search for from:newsletter@example.com to delete only messages from a specific sender. This way you keep recent or important mail while clearing out old clutter.

Why the deletion takes multiple rounds

Gmail limits how many messages it can display and delete at once for performance reasons. When you select all conversations that match your search, Gmail selects them all in the background, but it only shows and processes about 50 at a time. After you delete one batch, the next batch automatically loads so you can delete it the same way.

This is why the process feels repetitive if you have thousands of messages. A Gmail account with 10,000 messages might take 10 to 15 minutes to clear completely. The good news is that you do not have to watch the entire time — you can click delete, wait a few seconds for the batch to process, then repeat while doing something else.

Frequently Asked Questions

Can I undo a deletion after the 30-day trash period ends?

No. Once 30 days pass, Gmail permanently deletes the message and there is no way to recover it. If you think you might need something, move it to a label or folder instead of deleting it, or wait until you are certain before you empty the trash.

Will deleting all my mail affect my Gmail account or storage?

Deleting mail frees up storage space in your Gmail account. If you are near your storage limit, clearing old messages can give you room for new ones. The deletion does not affect your account settings, contacts, or any other Gmail features.

What if the search "in:anywhere" does not work?

Make sure you typed it exactly as shown, with no spaces before or after the colon. If it still does not work, try searching for * (a single asterisk), which also pulls up all messages in some Gmail versions. If neither works, your Gmail account may have restrictions set by an organization or administrator.

Can I delete messages from only one label without deleting everything?

Yes. Instead of searching for "in:anywhere," click on the label you want to clear in the left sidebar. Then select all messages in that label and delete them. This deletes only messages with that label, not your entire account.

How long does it take to delete thousands of messages?

The time depends on how many messages you have and your internet speed. Expect 10 to 20 minutes for a typical account with several thousand messages. Each batch of about 50 messages takes a few seconds to delete, so the process is mostly waiting for Gmail to load and process each round.