How to turn on auto-delete in Gmail
Gmail does not have a built-in auto-delete feature that works on all your mail. Instead, you use filters — rules that catch emails matching certain words, senders, or labels — and pair each filter with an automatic action. The most direct route is to create a filter that deletes messages as they arrive, or to set up Gmail's archive-and-forget system if you want to keep emails but get them out of your inbox when ready.
The process takes about two minutes per filter. You decide what emails to target (mail from a specific sender, messages with certain words, anything with a particular label), then tell Gmail what to do with them. You can delete them right away, send them to trash, skip your inbox, or add a label so you can find them later.
Gmail keeps deleted emails in your Trash folder for 30 days before removing them permanently. If you change your mind about a filter, you can turn it off or edit it at any time without recovering what was already deleted.
Key Takeaways
- Gmail filters let you automatically delete, archive, or label emails based on sender, subject line, or keywords you choose.
- You create a filter by going to Settings > Filters and Blocked Addresses > Create a new filter, then choosing your deletion action.
- Deleted emails sit in Trash for 30 days; after that, Gmail removes them permanently and you cannot recover them.
- You can test a filter on existing emails before explore it to all future mail, which helps you avoid deleting something by mistake.
- Turning off a filter stops it from working on new emails, but does not restore emails that were already deleted.
Create a filter to delete emails automatically
Open Gmail 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.
A box will open with fields for From, To, Subject, and Has the words. Fill in at least one field to describe which emails you want to delete. For example, type a sender's email address in the From field if you want to delete all mail from that person, or type a word like "unsubscribe" in the Has the words field to catch promotional emails with that phrase. You can combine multiple conditions — Gmail will delete only emails that match all of them.
Click Create filter at the bottom right. A second box appears asking what to do with matching emails. Check the box next to Delete it. If you want to review emails before they disappear, check Skip the Inbox (Archive it) instead, which moves them out of sight but keeps them searchable. Then click Create filter again.
Test a filter before it deletes your mail
Before you finalize a filter that deletes, Gmail offers a way to see what it would catch. After you fill in the filter conditions (From, Subject, Has the words, and so on), click Search instead of Create filter. Gmail shows you every email in your account that matches those conditions right now.
Scan the results. If you see emails you want to keep, go back and make your filter more specific. For example, if you typed "invoice" and got both bills you want to delete and invoices from your accountant you need to save, add the sender's address to the From field so the filter targets only that one person's invoices.
Once the search results look right, go back to the filter setup and click Create filter to turn it on. The filter now applies to all future emails matching those conditions, plus any existing emails you saw in the search results if you checked the box that says Also explore filter to [number] matching conversations.
Delete emails from a specific sender automatically
The simplest filter targets one person or company. Open Gmail, click Settings, go to Filters and Blocked Addresses, and click Create a new filter. Type the sender's full email address in the From field — for example, newsletter@company.com. Leave the other fields blank and click Create filter.
Check Delete it and click Create filter again. From now on, every email from that address goes straight to Trash. If the sender uses multiple addresses or you want to catch variations, type part of the address with an asterisk — for example, *@company.com catches mail from anyone at that domain.
Delete emails with certain words in the subject line
If you receive recurring emails with the same subject line — like "Daily Report" or "Meeting Reminder" — you can filter by subject. Open Settings, go to Filters and Blocked Addresses, and click Create a new filter. Type the subject words in the Subject field. Click Create filter, check Delete it, and click Create filter again.
Be careful with broad words. If you type "report" and you receive reports from multiple sources, all of them will be deleted. Use the Search button first to see what the filter would catch, then adjust your wording if needed.
Turn off or edit a filter you have already created
Go to Settings, click Filters and Blocked Addresses, and scroll through the list of your active filters. Find the one you want to change. Click the pencil icon to edit it or the trash icon to delete the filter itself.
If you click the pencil, you can change the conditions (which emails it targets) or the action (what happens to them). Click Update filter to save. If you delete the filter, it stops working on new emails when ready, but emails that were already deleted stay in Trash for 30 days.
You can also temporarily turn off a filter without deleting it. Some Gmail accounts show an on/off toggle next to each filter; if yours does, click it to pause the filter. Check your Gmail version and settings to see if this option is available to you.
Recover emails from Trash if a filter deleted too much
Gmail keeps deleted emails in your Trash folder for 30 days. Click the three-line menu icon on the left side of Gmail, scroll down, and click Trash. Search for the emails you want to recover or scroll through the list. Click the checkbox next to each email, then click the arrow icon at the top and select Move to. Choose Inbox or any other folder to restore them.
After 30 days, Gmail permanently deletes everything in Trash and you cannot recover it. If you realize a filter is too aggressive, turn it off or edit it right away, then recover what you can from Trash before the 30-day window closes.
Frequently Asked Questions
Can I delete emails from multiple senders with one filter?
Yes. In the From field, type the first email address, then add a vertical bar (|) and the second address: sender1@example.com|sender2@example.com. Gmail treats the bar as "or", so the filter catches mail from either sender. You can add as many addresses as you need this way.
What is the difference between deleting and archiving?
Deleted emails go to Trash and disappear after 30 days. Archived emails stay in your account forever, searchable by Gmail's search bar, but do not show up in your Inbox. Archiving is safer if you think you might need the email later but want it out of your way now.
Will a filter delete emails that are already in my inbox?
Only if you check the box that says Also explore filter to [number] matching conversations when you create the filter. If you do not check that box, the filter applies only to new emails arriving after you create it. Existing emails stay where they are.
Can I undo a filter that has already deleted hundreds of emails?
You can turn off the filter to stop it from deleting new emails, and you can recover emails from Trash within 30 days. After 30 days, Gmail permanently removes them and recovery is not possible. This is why testing a filter with the Search button first is important.
Do filters work on emails I have already labeled?
Yes. You can create a filter that targets emails with a specific label and deletes them automatically. This is useful if you have already sorted emails into a folder and want to clean them out on a schedule.