You can auto delete emails by creating rules that act on incoming mail (Gmail filters, Outlook rules), using built-in cleanup tools like Outlook's Sweep, or using a service that removes unwanted senders for you. Deleting emails based on age is trickier, because most built-in filters only act when mail arrives.
On This Page
What You Can Auto Delete
Auto-delete works best for mail with no long-term value:
- Promotions and marketing from specific senders.
- Notifications from apps and services.
- Old newsletters after you've had a chance to read them.
- Senders you never want to hear from.
Avoid auto-deleting receipts, personal conversations or anything you might need for taxes, legal or work records.
Decide What Should Auto-Delete
| Good Candidates | Bad Candidates |
|---|---|
| Daily deal emails from stores | Receipts and invoices |
| Social network notifications | Bank and tax mail |
| Expired event and webinar promos | Contracts and legal mail |
| Automated system alerts you never read | Messages from people |
| Senders who ignore unsubscribe requests | Anything you're unsure about |
When unsure, auto-archive instead. Archived mail is out of your way but still searchable.
Auto Delete Emails in Gmail
Delete Incoming Mail with a Filter
Click the search options icon in Gmail's search bar.
Enter the sender, domain or keywords you want to match.
Click Create filter.
Tick Delete it and confirm. Optionally apply to existing matching conversations.
See our full guide to Gmail filters.
Deleting Old Emails by Age
Gmail filters act only when mail arrives, so a filter with older_than:30d won't keep deleting mail as it ages. Options:
- Run a periodic search like
category:promotions older_than:1y, select all and delete. See Gmail search operators. - Use a script such as Google Apps Script with a time-based trigger, if you're comfortable with code.
- Workspace accounts may have admin retention policies that handle this.
Using Google Apps Script (Advanced)
If you're comfortable with a little code, Google Apps Script can search Gmail on a schedule and move matching threads to Trash, for example promotions older than 30 days. You write a short script, then add a time-driven trigger so it runs daily. Test it carefully on a narrow search first, because a mistake can delete more than you intend. Most people find a monthly manual cleanup simpler.
Auto Delete Emails in Outlook
Sweep
In Outlook on the web and the new Outlook, Sweep can delete all mail from a sender, delete current and future mail, keep only the latest message, or delete messages older than 10 days. See Outlook Sweep.
Rules
Create a rule that deletes incoming mail from specific senders, domains or with certain words. See Outlook rules.
AutoArchive (Classic Outlook)
Classic Outlook for Windows has AutoArchive, which can move or delete items older than a set age. It's not available in the new Outlook.
Mobile Apps and Auto-Delete
Rules and filters usually need to be created on a computer or in webmail, but they run on the server, so they work no matter which device you use. The Gmail and Outlook mobile apps don't offer full rule creation, so plan your auto-delete setup at a desk.
Auto Delete in Other Apps
| Provider | Incoming Mail | Age-Based |
|---|---|---|
| Gmail | Filters with "Delete it" | Manual search or script |
| Outlook (web/new) | Rules, Sweep | Sweep "older than 10 days" |
| Classic Outlook | Rules | AutoArchive |
| Yahoo Mail | Filters to Trash | Manual search |
| Apple Mail (Mac) | Rules | Manual |
| Any app with SaneBox | SaneBlackHole | Custom folder auto-archive |
Auto Delete in Yahoo Mail and Apple Mail
In Yahoo Mail, open Settings > More Settings > Filters, add a filter for a sender or keyword and choose Trash as the destination. In Mail on a Mac, Settings > Rules can move matching messages to Trash; rules run while Mail is open on that Mac. On iPhone, blocking a sender and choosing to move blocked mail to Trash has a similar effect for individual senders.
Auto Delete with SaneBox
SaneBox handles the most common auto-delete need, unwanted senders, in every email app:
- SaneBlackHole: Drag one email from a sender into the SaneBlackHole folder, and future mail from that sender goes to trash. See SaneBlackHole.
- Email Deep Clean: Find the senders filling your mailbox and clear their old mail in bulk. See Email Deep Clean.
- Custom folders: Can archive messages automatically after a set period.
Clear Unwanted Mail Automatically
SaneBlackHole sends unwanted senders to trash in any email app. Try SaneBox free.
A Simple Auto-Cleanup Setup
List your ten noisiest senders from the last month.
Unsubscribe where possible.
Auto-delete the senders that won't stop, with filters, rules or SaneBlackHole.
Auto-archive notifications you might occasionally need.
Run a monthly age-based cleanup with search for promotions older than a few months.
This handles most clutter without risking anything important.
Avoid Auto-Delete Mistakes
- Test filters with a search first to see what they'll match.
- Prefer archive for anything uncertain. See archive vs delete.
- Remember the trash safety net. Most providers keep deleted mail for a period before removing it permanently.
- Check work policies before auto-deleting on a work account.
Auto Delete Emails FAQ
Can Gmail automatically delete old emails?
Not natively based on age. Gmail filters act on incoming mail. For old mail, run a periodic search and delete, or use a script.
How do I auto delete emails in Outlook?
Use Sweep in Outlook on the web or the new Outlook, inbox rules for specific senders, or AutoArchive in classic Outlook for Windows.
Does deleted email free up storage?
Yes, once it's removed from the trash. Most providers empty the trash automatically after a period.
What's the safest way to auto delete?
Target specific senders and types of mail, test with a search first and archive anything you might need.
Can I undo an auto-delete rule?
Yes. Delete or edit the rule, and restore any messages still in Trash. Messages already purged from Trash usually can't be recovered.
Do auto-delete rules work on my phone?
Yes. Rules run on your provider's servers, so they apply to mail on every device.
Is there a way to auto-delete emails after 30 days?
Not natively in most consumer email apps. Use Outlook's Sweep option for messages older than 10 days from a sender, a monthly search-and-delete, or a script for Gmail.
Will auto-delete rules catch emails from new senders?
Only if they match your rule's criteria. For unknown or changing senders, report spam or use a learning filter.