Gmail's auto-delete feature removes emails automatically based on rules you create
Gmail doesn't have a single "auto-delete" button, but you can set up filters that automatically delete messages matching specific criteria — like emails from certain senders, with particular words in the subject line, or older than a set date. The most common approach uses Gmail's filter feature combined with the delete action. Another option is Gmail's built-in trash auto-empty setting, which permanently removes anything in your trash folder after 30 days.
The method you choose depends on what you want to delete. If you want to remove old emails from a specific sender or category, filters work best. If you just want Gmail to clean up your trash automatically, the auto-empty setting is simpler. Both take just a few minutes to set up.
Key Takeaways
- Gmail filters can automatically delete emails from specific senders, with certain words in the subject, or matching other criteria you define.
- You create filters in Gmail Settings under the Filters and Blocked Addresses tab, then choose "Delete it" as the action.
- Gmail's trash auto-empty feature permanently removes deleted emails after 30 days instead of keeping them indefinitely.
- Test a filter on a small number of emails first by using the preview feature before applying it to all matching messages.
- Deleted emails cannot be recovered after 30 days, so double-check your filter criteria before confirming.
Creating a filter to auto-delete specific emails
Open Gmail in your web browser and click the Settings gear icon in the top right corner. Select "See all settings," then click the "Filters and Blocked Addresses" tab. At the bottom of the page, click "Create a new filter."
In the search box that appears, enter the criteria for emails you want to delete. You can search by sender (type "from:emailaddress@example.com"), subject line (type "subject:words you want to match"), or any combination of these. For example, to delete all emails from a newsletter you no longer read, type "from:newsletter@company.com". To delete emails with a specific word in the subject, type "subject:unsubscribe". You can also use the dropdown menus to set criteria like "Has the words," "Doesn't have," "From," "To," or "Size."
Click "Create filter" at the bottom right. Gmail will show you a preview of emails matching your criteria. Review this list carefully — these are the emails that will be deleted. If the preview looks correct, check the box next to "Delete it." Then click "Create filter." From that moment on, any new emails matching those criteria will be automatically deleted.
Applying auto-delete to emails already in your inbox
When you create a filter, it only affects new incoming emails by default. If you want to delete emails that already exist in your inbox, you need to take an extra step during filter creation.
After you enter your search criteria and click "Create filter," Gmail shows you the preview of matching emails. Before you check "Delete it," look for a checkbox that says "Also apply filter to matching conversations." Check this box, then select "Delete it" and click "Create filter." This will delete both old and new emails matching your criteria.
Be very careful with this option. Once you confirm, those emails are gone. If you're unsure, create the filter for new emails only first, let it run for a week, and then create a second filter for older messages.
Setting Gmail to auto-empty your trash folder
Gmail keeps deleted emails in your trash folder for 30 days before permanently removing them. You can shorten this to happen automatically instead of waiting. Click the Settings gear icon, select "See all settings," and go to the "General" tab.
Scroll down until you find "Trash" in the list. Next to it, you'll see a dropdown menu. Click it and select how long you want Gmail to keep deleted emails — the options are "Never delete," "1 day," "5 days," "10 days," or "30 days." Choose your preferred timeframe. Gmail will now automatically and permanently delete anything in your trash after that period ends.
This setting is useful if you want to free up storage space automatically, but remember that once the time period passes, you cannot recover those emails. If you might need to review deleted emails occasionally, keep this set to 30 days.
Using filters to delete promotional emails and newsletters
One of the most practical uses for auto-delete filters is removing newsletters and promotional emails you no longer read. Most of these emails contain an "Unsubscribe" link at the bottom, and clicking it is usually the best first step. But if unsubscribing doesn't work or you want a backup, a filter handles it automatically.
Open a promotional email and look at the sender's address. Create a new filter with "from:[sender's email address]" and set it to delete. Alternatively, if multiple newsletters use similar subject lines, you can filter by subject — for example, "subject:daily digest" will catch all emails with those words in the subject line.
You can also combine criteria. To delete emails from a specific sender only if they contain certain words, use both the "From" and "Has the words" fields in the filter. This is helpful if you want to keep some emails from a sender but delete only specific types.
Preventing accidental deletion with filter testing
The preview feature in Gmail's filter creation is your safety net. Always review the list of emails that will be deleted before you confirm. If the preview shows emails you want to keep, adjust your search criteria and try again.
For important filters, consider creating them without the "Also apply filter to matching conversations" option first. Let the filter run for a few days on new emails only. If it works as expected and you don't see any mistakes, you can then create a second filter to handle older emails. This two-step approach gives you a chance to catch problems before deleting large batches of old messages.
If you create a filter and realize it's deleting the wrong emails, you can disable or delete the filter itself. Go to Settings, click "Filters and Blocked Addresses," find the filter in the list, and click the trash icon next to it. This stops the filter from working on future emails, but it won't recover emails already deleted.
Managing multiple auto-delete filters
As you create more filters, Gmail applies them in the order they appear in your Filters and Blocked Addresses list. If you have many filters, you might want to organize them by purpose — for example, group all newsletter filters together, then all promotional filters, then all other types.
You can edit or delete any filter by going to Settings, clicking "Filters and Blocked Addresses," and clicking the edit or trash icon next to the filter you want to change. If a filter isn't working the way you expected, click edit, review the criteria, and adjust it. You can also temporarily disable a filter by unchecking the box next to it without deleting it entirely.
Keep in mind that filters don't affect emails you've already read and manually deleted. They only work on new incoming emails (or old emails if you checked the "Also apply filter to matching conversations" option when creating the filter). If you want to clean up your inbox manually, use Gmail's search feature to find old emails and delete them in batches.
Frequently Asked Questions
Can I undo an auto-delete filter and recover the emails?
Once emails are permanently deleted after 30 days, they cannot be recovered. If you delete a filter itself, future emails matching that criteria will no longer be deleted, but emails already deleted are gone. Always test filters on a small batch first.
What's the difference between deleting and archiving emails?
Deleted emails go to trash and are permanently removed after 30 days. Archived emails stay in your account but are hidden from your inbox — you can search for them anytime. If you want to remove emails from view without deleting them, create a filter that archives instead of deletes.
Can I create a filter that deletes emails older than a certain date?
Gmail's filter feature doesn't have a built-in "older than" option. Instead, use Gmail's search to find old emails manually — search "before:2024/01/01" to find emails before that date — then select all results and delete them in one action.
Will auto-delete filters affect emails in my spam folder?
No. Filters only work on emails that reach your inbox or other folders. Emails Gmail automatically marks as spam are handled separately. If you want to delete spam automatically, you would need to create a filter based on the sender or subject criteria.
Can I set up auto-delete on the Gmail mobile app?
Filters must be created in Gmail's web version. The mobile app doesn't have a filter creation feature. However, once you create a filter on the web, it works automatically on the mobile app — deleted emails will disappear from your phone just as they do on your computer.