Gmail's automatic deletion works through filters and labels, not a single "auto delete" button
Gmail does not have a built-in setting that automatically deletes emails after a certain number of days. Instead, you create rules that move messages to trash automatically based on what they are, who sent them, or what words they contain. The most common approach is to set up a filter that sends certain emails straight to trash, or to use Gmail's archive feature paired with a scheduled deletion tool if you want messages to disappear after a waiting period.
The simplest method for most people is creating a filter that automatically trashes emails from specific senders or with specific words in the subject line. This works when ready and requires no follow-up. If you want a safety net — keeping emails for 30 days before they vanish — you can use a filter to label messages, then set up a separate rule through Gmail's settings or a third-party tool to delete them later.
Key Takeaways
- Gmail filters can automatically send emails to trash based on sender, subject line, or message content, and this happens when ready when the email arrives.
- You create filters by opening an email, clicking the three-dot menu, selecting "Filter messages like this," and choosing "Delete it" as the action.
- For newsletters and promotional emails you no longer want, unsubscribe first if the option exists, then create a filter for any that slip through.
- Gmail's native tools do not support delayed deletion, but you can use a label combined with a third-party automation tool if you want a waiting period before permanent removal.
- Deleted emails stay in your Trash folder for 30 days before Gmail permanently removes them, giving you time to recover messages if a filter was too broad.
Creating a filter to automatically delete emails from a specific sender
Open any email from the sender you want to filter. Click the three-dot menu icon in the top right of the email. Select "Filter messages like this" from the dropdown menu.
Gmail will open a filter creation window showing the sender's address in the "From" field. You can leave this as is, or add more conditions — for example, adding a word in the "Subject" field if you only want to filter emails with that word. Click "Create filter" at the bottom right.
In the next window, check the box next to "Delete it." This tells Gmail to send all matching emails straight to trash. Click "Create filter" again. From now on, any email matching those conditions will bypass your inbox and go directly to trash.
Filtering emails by subject line or keywords
If you want to delete emails based on what they say rather than who sent them, go to Gmail's main settings. Click the gear icon in the top right, then select "See all settings." Click the "Filters and Blocked Addresses" tab.
Click "Create a new filter" at the bottom of the page. In the "Subject" field, type the word or phrase you want to match — for example, "unsubscribe" if you are catching old mailing list emails, or "receipt" if you want to auto-delete purchase confirmations. You can also use the "Has the words" field for more flexibility.
Click "Create filter" at the bottom. In the next screen, check "Delete it" and click "Create filter." Gmail will now delete any incoming email with that subject line or keyword.
Handling newsletters and promotional emails
Before creating a filter, check whether the email has an unsubscribe link. Most legitimate newsletters include one at the very bottom. Click it and follow the steps to remove yourself from the mailing list. This is faster than filtering because the emails stop arriving altogether.
If unsubscribe does not work, or if the link is missing, then create a filter. Open one email from that sender, click the three-dot menu, and select "Filter messages like this." Check "Delete it" and create the filter. Any future emails from that sender will go straight to trash.
For promotional emails from companies you do business with but do not want cluttering your inbox, consider using a label instead of deletion. Create a filter that applies a label like "Promotions" rather than deleting, so you can review them later if needed. This is safer than auto-deletion if you occasionally need receipts or shipping updates from that sender.
Using labels and archive instead of when ready deletion
If you want a safety net before emails disappear, use a two-step approach: create a filter that applies a label, then manually delete the labeled emails after a waiting period. Open an email you want to filter, click the three-dot menu, and select "Filter messages like this." Instead of checking "Delete it," check "explore the label" and choose or create a label like "Auto Delete — 30 Days."
This keeps the emails out of your inbox but does not remove them permanently. After 30 days, go to that label, select all the emails, and delete them. This gives you time to catch any mistakes — for example, if your filter was too broad and caught emails you actually needed.
Alternatively, use Gmail's archive feature. Create a filter that archives emails instead of deleting them. Archived emails disappear from your inbox but stay in your "All Mail" folder. You can search for them later if needed. This is the safest option if you are unsure whether you will need the messages.
What happens to deleted emails and how to recover them
When a filter sends an email to trash, it goes to your Trash folder, not permanently deleted. Emails stay in Trash for 30 days. After 30 days, Gmail permanently removes them and they cannot be recovered.
If a filter deleted something you needed, go to your Trash folder, find the email, click it, and click the "Move to" icon (the arrow pointing into a folder). Select "Inbox" or another folder to restore it. Then go back to your filters and adjust the rule so it does not catch that type of email again.
To view or edit your filters at any time, go to Settings, click "Filters and Blocked Addresses," and you will see a list of all active filters. Click the pencil icon next to any filter to change it, or click the trash icon to delete the filter entirely.
Using third-party tools for delayed deletion
Gmail itself does not offer scheduled deletion — the ability to delete an email automatically after a set number of days. If you need this feature, you can use automation tools like Zapier or IFTTT (If This Then That) to create a workflow that deletes emails after a delay.
These tools work by connecting to your Gmail account and running rules on a schedule. For example, you could set up a rule that moves emails with a certain label to trash after 30 days. Both services offer free plans with limited monthly actions, and paid plans if you need more automation.
Setting up these tools requires more technical steps than Gmail's built-in filters, so use them only if Gmail's native options do not meet your needs. For most people, creating a filter that deletes when ready or using a label with manual deletion is simpler and safer.
Frequently Asked Questions
Can I undo a filter that is deleting emails I actually need?
Yes. Go to Settings, click "Filters and Blocked Addresses," find the filter, and click the trash icon to delete it. Any emails already in your Trash folder can be restored by opening Trash, selecting them, and clicking "Move to" to send them back to your inbox. Emails deleted more than 30 days ago cannot be recovered.
Will a filter delete emails that are already in my inbox?
No. Filters only explore to new incoming emails. If you want to delete old emails matching a filter rule, you must search for them manually, select them, and delete them yourself. Go to the search box, type your filter criteria, select all results, and click the trash icon.
Can I create a filter that deletes emails but keeps a copy somewhere?
Not directly. However, you can create a filter that applies a label before deleting. Set up the filter to label emails first, then manually delete them after reviewing the label. This way you have a record of what was deleted in the label's history.
What is the difference between deleting and archiving in Gmail?
Deleted emails go to Trash and disappear after 30 days. Archived emails stay in your "All Mail" folder forever and can be searched, but they do not appear in your inbox. Archiving is safer if you might need the emails later.
Can I filter emails based on multiple conditions at once?
Yes. When creating a filter, you can fill in multiple fields — for example, "From" a specific sender AND "Subject" contains a specific word. Gmail will only delete emails that match all the conditions you set, making your filter more precise.