Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Make Gmail automatically delete email after 30 days Internet
This is for people who have a Gmail account, but prefer to get their mail in Mail or Entourage using a POP connection to Gmail. This will keep your Gmail from accumulating online forever. Instead, it will be deleted from Gmail online after 30 days. There are only two steps to this hint:
  1. Use the 'recent' option in your POP email client.
  2. Set up a filter in Gmail that deletes mail that is from your Gmail address.
Step one is tricky and has major consequences. Change your POP client's user id settings from myaccount@gmail.com to recent:myaccount@gmail. When you do this, all of the email from the last 30 days will be received by your email client. When I say all, I mean both sent and received mail, but not mail that is in the trash.

The trick is to make sure "leave mail on server" is not activated in your email client's settings. This causes Gmail to throw the last 30 days of email in the trash! Once it is in the trash, it will be automatically deleted after 30 days. Step two is straightforward but the reasoning is a bit hard to follow.

Go to Gmail on the web and add the following filter: If 'from' is myaccount@gmail.com then 'delete it.' When you specify "delete it," your sent mail will be put in the trash. If you don't do step two, checking your email using POP with the receive: option will give you an extra copy of your sent mail. This filter prevents the online copy of your sent email from being sent back to you.

Consequences:
  • When you send and receive by POP, your email will be stored in Gmail's trash for 30 days, and then deleted.
  • If you want to recover mail from Gmail and have it sent to your computer again, go to Gmail on the web and move the emails you want out of the trash. Now your POP client on the computer will receive those emails, and then put them back in the trash. This is because of what you did in step one.
  • If you compose and send an email using Gmail on the web, the mail will be sent and then you will get an error message saying, "This mail is in the trash, it won't show up in Sent Mail." This is because of the filter you set up in step two. If you want the email you write using Gmail on the web to get to your computer, move it Sent Mail. It will be received by your POP client, and then put back in the trash.
  • The other major consequence of this setup is when I check Gmail from my phone's POP client, I only receive recent emails that I haven't seen on my computer. The next time I check Gmail on the computer, it picks up the mail I received on the phone. This is surprisingly difficult to do with Gmail.
[robg adds: I haven't tested this one.]
    •    
  • Currently 2.33 / 5
  You rated: 5 / 5 (9 votes cast)
 
[34,842 views]  

Make Gmail automatically delete email after 30 days | 4 comments | Create New Account
Click here to return to the 'Make Gmail automatically delete email after 30 days' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make Gmail automatically delete email after 30 days.
Authored by: wgscott on May 27, '08 10:11:44AM

Wouldn't it be easier just to use gmail with imap and keep all the messages on the server? (That is what I do.) Then make a rule to archive anything read, if you want a clutter-free inbox.



[ Reply to This | # ]
Make Gmail automatically delete email after 30 days.
Authored by: iangoldby on May 31, '08 12:59:59PM
I think this is a good tip. As it said in the introduction, this is for people who don't want to keep their mail online on GMail. Fortunately the tip works regardless of why someone might want this.

[ Reply to This | # ]
Make Gmail automatically delete email after 30 days.
Authored by: astrosmash on May 27, '08 12:16:02PM

I don't understand the point of this. Why would you want to delete mail in your virtually-unlimited GMail account? Are you worried it would fill up?

I use Mail.app to backup my Gmail account using POP3, and the only trick is to ensure the "leave mail on server" option is not checked, as mentioned in this hint, otherwise things start getting really slow after a few thousand messages. But when Mail.app deletes a message over POP3, it isn't trashed in Gmail, it's simply removed from the POP3 queue so Mail.app doesn't have to keep processing it.



[ Reply to This | # ]
Update on deleting Gmail after 30 days
Authored by: mclbruce on Sep 06, '08 11:02:17AM

It looks like Google has changed some things, or maybe I missed a setting or two the first time around.

- I'm still using a filter on Gmail to move mail sent from my Gmail account to trash.

- For incoming mail a combination of two settings seems to be working.

1. In Gmail Settings: Forwarding and POP/IMAP: POP Download, you can specify the following - When messages are accessed with POP: delete Gmail's copy.

2. For checking Gmail POP mail from a phone, use the leave mail on server option in the phone's software. Gmail will respect this setting and not trash the mail you receive on the phone. It will be picked up the next time you check Gmail via POP from your computer.



[ Reply to This | # ]