How to Automatically Delete Spam in Gmail (2026 Guide)

- Published: - 11 minutes read

Spam emails can pile up fast — cluttering your inbox, wasting storage space, and making it harder to spot the messages that actually matter. Every day, more than 170 billion spam emails are sent worldwide, turning manual cleanup into a constant chore. In fact, research from The Radicati Group and Kaspersky Lab shows that spam still accounts for nearly 47% of global email traffic.

The good news? Gmail automatically deletes spam after 30 days. But if you want faster results, you can create a simple filter to delete unwanted emails as soon as they arrive — no manual cleanup required.

In this guide, you’ll learn how to auto delete spam in Gmail, remove recurring junk from specific senders or based on certain keywords, and reduce the number of unwanted emails reaching your inbox in the first place.

Does Gmail Automatically Delete Spam?

Yes, Gmail automatically deletes messages in your Spam folder after they have been there for 30 days. This 30-day window is a safety feature designed by Google to ensure you have time to recover “false positives” — legitimate emails that were accidentally flagged as junk.

However, this means that even the most obvious spam stays in your account for a full month, taking up valuable storage space. If you don’t want to wait that long, you can bypass Gmail’s default behavior by creating a custom filter that auto-deletes spam the moment it arrives.

How to Automatically Delete Spam in Gmail

The most effective way to manage junk mail is to use Gmail filters. By creating a specific rule for your incoming mail, you can tell Google to bypass the 30-day waiting period and delete messages immediately.

Automatically Delete All Incoming Spam

If you receive large volumes of junk email, you can create a filter to automatically delete incoming spam before it clutters your inbox.

To automatically delete spam in Gmail:

  1. Open Gmail.
  2. Click the Show search options icon in the search bar. Click the Show search options icon in the Gmail search bar to create a filter
  3. In the Has the words field, type: is:spam. Type is:spam in the Has the words field to automatically delete spam emails in Gmail
  4. Click Create filter.
  5. Select Delete it. You can also check Also apply filter to matching conversations if you want Gmail to delete existing spam emails. Select the Delete it option in Gmail filter settings to move spam emails to the Trash automatically
  6. Click Create filter again to confirm.

And voilà. From now on, any email marked as spam will be moved to the Trash automatically.

Gmail’s Delete it action moves messages to the Trash, where they remain for up to 30 days before being permanently deleted. To free up storage space faster, you can occasionally click Empty Trash now. This is still much quicker than manually clearing your Spam folder.

Automatically Delete Emails From a Specific Sender

If a persistent spammer keeps hitting your inbox, you can create a filter to automatically delete emails from that sender before you ever see them.

To automatically delete emails from a specific sender:

  1. Open Gmail.
  2. Click the Show search options icon in the search bar.
  3. Enter the sender’s email address in the From field. You can also enter a domain (for example: @company.com) to block emails from the entire organization. Enter the spammer’s email address in the From field to automatically delete emails from a specific sender in Gmail
  4. Click Create filter.
  5. Select Delete it.
  6. Click Create filter again to confirm.

And that’s it. Gmail will now move emails from that sender directly to the Trash, keeping your inbox clear of repeat junk.

Many spammers use disposable or constantly changing email addresses, so blocking a single sender may not stop the problem. If spam keeps coming from similar messages, create a filter based on keywords or domains instead.

Automatically Delete Emails with Certain Keywords

Spammers often reuse the same trigger words — even when they change email addresses. By filtering messages based on specific keywords, you can catch these emails before they reach your inbox.

To automatically delete emails containing certain keywords:

  1. Open Gmail.
  2. Click the Show search options icon in the search bar.
  3. In the Has the words field, enter the keyword or phrase you want to filter (for example: Winner OR Prize OR Lottery OR "Act now"). Use the Has the words field in Gmail to filter and automatically delete spam emails based on keywords
  4. Click Create filter.
  5. Select Delete it.
  6. Click Create filter again to confirm.

All done. From now on, any email containing those keywords will be moved to the Trash automatically — even if the sender changes their address.

Be careful with broad keywords. Terms like free or order can also match legitimate emails — such as receipts, confirmations, or shipping updates — which means you might accidentally delete important messages.

How to Reduce Spam Emails in Gmail

Deleting spam is a temporary fix — stopping it at the source is the real solution. By teaching Gmail what you consider junk and protecting your primary address, you can significantly reduce the amount of spam reaching your inbox.

Unsubscribe From Unwanted Emails

Not all unwanted emails are malicious. Many come from newsletters, promotions, or services you signed up for in the past. If you keep receiving messages you no longer want, the fastest solution is to unsubscribe.

You can do so using Gmail’s built-in Unsubscribe feature. Look for the blue Unsubscribe link next to the sender’s name at the top of the email. With one click, Gmail removes you from the mailing list.

Use Gmail’s built-in Unsubscribe button to remove yourself from a mailing list

Only use this option for legitimate brands you recognize. Never click Unsubscribe on suspicious or scam emails — it can confirm your address is active and lead to more spam. For those messages, use the Report spam button instead.

Block Spam Senders in Gmail

If spam keeps coming from the same address, block the sender. It’s one of the quickest ways to stop repeat messages without setting up complex rules. Once blocked, future emails from that address go straight to your Spam folder — skipping your inbox.

To block a sender in Gmail:

  1. Sign in to Gmail.
  2. Open an email from the sender you want to block.
  3. Click the three-dot menu.
  4. Select Block. https://assets.mailmeteor.com/blog/auto-delete-spam-gmail/block-spammer-gmail.jpg

That’s it. Gmail will handle the rest automatically.

Use Block for specific senders you want to stop. Use Report spam for generic junk or phishing attempts. Reporting a message helps Gmail recognize similar patterns and block future emails — even if they come from different addresses.

Use the “+” Alias Trick to Filter Spam Emails

Gmail ignores anything after a “+” in your email address. This lets you create simple variations — called Gmail aliases — of your email address without changing your actual account settings.

For example, if your email is:
[email protected]

You can sign up to a service using:
[email protected]

This way, if you start receiving junk sent to that specific address, you’ll know exactly which company shared or leaked your data. You can then create a filter to auto-delete any email where the To field matches that alias.

Unfortunately, this trick isn’t 100% bulletproof against hackers. Advanced spammers now use automated tools to "strip" the plus sign from email lists before selling them (reverting [email protected] back to [email protected]).

Keep Your Inbox Clean With Mailmeteor

Spam never fully disappears — but with the right filters and habits, you can keep it under control. By automatically deleting unwanted emails, blocking repeat senders, and targeting common spam keywords, you can drastically reduce clutter and spend less time managing your inbox.

And if you want to go one step further, you can use an AI email assistant to handle routine tasks automatically. With Mailmeteor’s AI assistant for Gmail, you can:

  • Write emails faster with AI to generate replies or improve your tone
  • Apply smart labels automatically to keep your inbox organized
  • Run mail merge campaigns to send personalized emails at scale
  • Send automatic follow-ups so important emails don’t slip through the cracks
  • Track emails in real time to see when messages are opened or clicked

A clean inbox shouldn’t require daily cleanup. Try Mailmeteor’s AI assistant today (it’s free!) and spend less time managing email every day.

FAQs

How long does Gmail keep spam before deleting it?

Gmail automatically deletes messages in the Spam folder after 30 days. You can’t change this default setting, but you can create a custom filter to delete spam sooner.

Can Gmail automatically delete spam after 1 day?

Not by default. Gmail keeps spam for 30 days before deleting it. However, you can set up a filter to automatically delete specific emails as soon as they arrive, without waiting.

How do I delete all spam emails at once in Gmail?

Open the Spam folder, click Select all, then choose Delete all spam messages now. Gmail will permanently remove every message in the folder. Once deleted, these emails can’t be recovered.

How do I auto-delete spam in Gmail on Android or iPhone?

You can’t create filters directly in the Gmail mobile app. To set up auto-deletion, you must log in to Gmail via a web browser. Once you create a filter on your computer, it will automatically apply to all incoming mail — including on mobile devices.

Is it better to block spam emails or delete them?

It is better to Report Spam or Block the sender rather than just deleting the email. Reporting spam trains Gmail’s AI to recognize similar junk in the future. Blocking the sender ensures their future emails never reach your Inbox.

Can I recover an email that was automatically deleted from Spam?

Sometimes. If the message is still in the Trash folder, you can restore it. But once Gmail permanently deletes the email (after 30 days or manual deletion), it can’t be recovered.

Do Spam and Trash Emails Count Toward Storage?

Yes. Emails in both the Spam and Trash folders still count toward your Gmail storage quota until they are permanently deleted. To free up space immediately, open the folder and click Empty Trash now or Delete all spam messages now.

This guide was written by Paul Anthonioz, content editor at Mailmeteor. Mailmeteor is a simple & privacy-focused emailing software. Trusted by millions of users worldwide, it is often considered as the best tool to send newsletters with Gmail. Give us a try and let us know what you think!

Published in:

Explore more from Mailmeteor

Articles, examples, tutorials, and inspiration from our emailing experts.

Try Mailmeteor for free

Get started on Mailmeteor

Send your first email campaign with Mailmeteor right now.

Get started on Mailmeteor Dashboard

AI Email Assistant

Meet an inbox that organizes itself, drafts replies for you, and writes alongside you.

Get started on Mailmeteor Gmail extension

Google Sheets

Trusted by 7 million users and recommended by Google. The most intuitive mail merge.

Get started on Mailmeteor for Google Sheets add-on