0

How can I automatically delete all emails on a Gmail account the moment they arrive or are sent?

migrated from superuser.com Jan 25 '17 at 16:39

This question came from our site for computer enthusiasts and power users.

3

Add filter:

  • In the search box click the down arrow.
  • Enter *
  • At the bottom of the search window, click Create filter with this search.
  • Select Delete
  • Create filter.
  • Great, this sends them all to the trash. But how to automatically delete them from the trash also ? I just have one more problem, the mail doesn't actually even get sent before getting deleted :/ How to prevent that ? – Coder1000 Jan 25 '17 at 14:19
  • 2
    Not possible via web GUI. Wait 30 days or remove manually. – Hex Jan 25 '17 at 14:21
  • The mail was actually sent. There was a strange delay. Hmmm, is there no way I could code an auto-trash deleter ? – Coder1000 Jan 25 '17 at 14:27
  • Possibly, but that would be beyond the scope of this site. – ale Jan 25 '17 at 18:41
0

You can create a filter. I would go with Does not have the words: and input something cryptic here. This will cover all incoming mails.

Then you need something for the outgoing. Here, I would search for the name of the gmail account.

Then there is an option to delete all messages to which the filter applies.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy