This article describes how you can free up space in your Gmail mailbox by removing bulky email messages and large file attachments. If you are on Windows (2000, XP, Vista or Win 7) and use Google email, this may be worth giving a shot.
The Gmail Advantage
While Yahoo! Mail and Windows Live Hotmail offer POP3 access to your email, GMail (and Google Apps for Email) is probably the only free web mail service that also provides free offline access to your email messages via the IMAP route.
The benefits of using IMAP4 far outweigh POP3 – the primary feature being instant synchronization of the action with the mail server. As an example, if you have configured Outlook or Thunderbird with your Gmail account using IMAP4, you can delete messages in the local client and they’ll get moved to the Trash folder in Gmail as well automatically.
Free up Space in Gmail via IMAP – The Strategy
Now the more interesting part. Let’s see how we can free up some important disk space in our Gmail inbox using a simple strategy:
Step 1: Track down bulky email messages in your Gmail inbox that contain large file attachments.
Step 2: Save these attachments to the local hard drive.
Step 3. After the attachments are saved locally, remove them from the online mailbox without deleting the corresponding email message(s).

Unlike Outlook, Gmail doesn’t offer a “sort by size” feature so you would normally assume that to implement such a strategy, one may have to configure his desktop mail client with Gmail’s IMAP, perform the operations locally and then do a sync. Well, that’s not required anymore.
We’ll use a portable (meaning it doesn’t need to be installed) and freeware utility called IMAPSize – at the outset, let’s be quite clear – this isn’t an email client per se. This Windows only application has been created solely to perform maintenance tasks on any IMAP mailbox from the desktop.
Find space-hogging Email Attachments in Gmail
Let’s start off by adding a GMail or Google Apps for Domains mailbox.
Usually, on first starting the IMAPSize program, a dialog box pops up asking if you’d like to add a new email account. If it doesn’t, one can always add an account from the Account > New menu option.
To configure your Gmail account, fill in your email address as the username and your Gmail password. Enter imap.gmail.com as your server and the port number as 993. Be sure to check the SSL secure connection option so that data sent between your computer and the GMail server can’t be intercepted.
If you are a Google Apps user, please enter username@your_domain.com for the username field.
You’ll now see a tree indicating the size of individual Gmail folders (labels). Even with the exceedingly generous storage quota offered by GMail, if you have an IMAP account with another provider like FastMail.fm, VFEmail.net, 1and1.com or RackSpace, it might be worth noting which folders in particular are occupying the maximum space.
Now the next step – double-click any Gmail folder in the tree to see all message within that folder. IMAPSize will only download the headers and not the entire message so the wait may not be that long.

Once your message list is available locally, invoke the “Advanced Search” function to filter out large emails (or ones that contain huge attachments). You need to specify the size in kilobytes so 500000 would filter out emails that are larger than 0.5 MB or 500 KB.
Go through the filtered list and select emails messages that you either want to remove completely or just need to detach the attachments. You can do that by right clicking the selected messages and choosing “Save Attachments locally” – this will save of copy of file attachments to the local drive.

Now use the Delete Attachments option for the same selection. This will make a copy of the original email in same the Gmail folder buts sans the attachment while the original message is moved to Trash after you choose “Expunge this mailbox”. (Outlook has such a feature by default).
All this happens without the main body of the email getting downloaded thereby saving on bandwidth as well as on time. And this may be neat option for saving those images and media files for offline use when GMail is not available.

Last, but by no means least is an option to backup your IMAP account to your local disk while preserving the folder structure. Use the Account > Account Backup [CTRL+B] option to select the folder you want to backup – most GMail users would be better off backing up the All Mail folder to archive everything locally.
Naturally, expect a great deal of time to elapse if you have lot of messages and a slow Internet connection. Incremental backup is an in-built feature, so your next backup shouldn’t take as long as only the changes made to the mail account will be taken into consideration.
For Desktop Mail Clients
If you are already using Outlook or another desktop client with Gmail, seee this guide on how to reclaim lost space in Gmail using a similar approach. And if you aren’t happy with speed, here’s another guide on improving Outlook performance with GMail IMAP.
By Shahrzaad M Parekh.
Find this article at: http://www.labnol.org/software/delete-large-email-attachments-in-gmail/9564/
Tags: Archives, Email, gmail, google apps, How-to Guides and Software Tutorials, microsoft outlook, Most Popular, Software
Reader Comments
This method is only good for gmail accounts which are having less emails… I tried this thing earlier and it did not work so smoothly as I had over 5 GB data in my Gmail account with over 12000 emails..
Outlook will not be able to synchronize such large amount of emails ever… It stops downloading after a few hundred emails and when you restart it downloads duplicate emails… there are lot other problems with this approach with outlook when your gmail account is large
Written by Preeti on 08.28.09
When Gmail offers unlimited space to store all your mails, what is the need to delete any of your mails or attachments? Does it affect the speed if you need to search your mailbox?
Written by Ankush Sharma on 08.28.09
That’s a clear and powerful way to free up space from Gmail. The steps are clear and easy to follow. I’ll try this very soon. Thanks.
Written by Money4Invest | Lee on 08.28.09
@Preeti – If you have all your emails under on label, downloading the whole list might throw a server timeout error. However, if use the has:attachment gmail filter at the server and apply a separate label to such emails, things get much simpler.
@Ankush – Gmail offers plenty of storage space but it’s not “unlimited”. If you have attachments containing high resolution photographs, video clips or bulky documents, don’t be surprised if you come near to exceeding that quota.
Written by Amit on 08.29.09
A very good explanatory article of an interesting utility – thankyou for bringing it to my attention.
Two issues I’ve found with this that seriously impair it:
1. The timestamp in gmail is altered in the process. The original timestamp survives in the header, but gmail lists it with the time the new email was uploaded. An email received in 2006 is currently sitting on top of the all mail folder! More seriously, searching by date is totally broken and useless because of this.
2. Expunge email didn’t work for me – the original email was preserved, but with the gmail label stripped away. I now have two copies of this email, one of which will have to be manually deleted in gmail. I imagine if I was performing attachment stripping on a large scale this could be a huge nuisance.
So overall I would say this is a very useful way of mapping the gmail tree – but strip attachments at your peril.
Written by nigel on 08.29.09
Good article… but then why would anyone want to delete messages from Gmail :)
“Over 7364.313674 megabytes (and counting) of free storage so you’ll never need to delete another message.”
Cheers….
Written by Nilesh on 08.30.09
great post.. like the way you write.. but google has too much space for mail.. never need to delete those
Written by Shekhar saxena on 08.30.09
This method is only good for gmail accounts which are having less emails… I tried this thing earlier and it did not work so smoothly as I had over 5 GB data in my Gmail account with over 12000 emails..
Outlook will not be able to synchronize such large amount of emails ever… It stops downloading after a few hundred emails and when you restart it downloads duplicate emails… there are lot other problems with this approach with outlook when your gmail account is large
Written by vintage Perfume bottles on 08.30.09
i think the same works well with windows live mail client with live.com email id.
please correct me if i am wrong
Written by Ajay on 08.31.09