Making space in gmail

⇠ Back to Blog:Hacks

We all eventually get there:

Gmail-full.png

I thought their idea of an ever-increasing mailbox size was 22th-century cool. Now however the capacity is fixed (usually to 15Gb, I got 2 additional ones participating to some program of theirs) and of course you then eventually hit the ceiling. I saturated with over 24 thousands pages of emails and this after several waves of cleaning up (huge attachments, mailing-list, promotions, updates, etc.):

Gmail-full2.png

I started using Gmail on February (2007), upon invitation from Mikhail Glazov. First incoming real emails were from Alexey.

Gmail-full3.png

And then they flooded by the hundred thousands, hence the problem of storage. Carlos investigated how to deal with that, without paying for the upgrade (he even offered jokingly that I pay him the monthly fee instead of Google and he'll take care of managing my emails).

That's how you do it:

1. Visit this address and ask an export (you certainly just don't want to make room but also keep a copy of what you'll get offline).

https://takeout.google.com/settings/takeout/custom/gmail,calendar

2. Check the result... to me it's two small files and an insane huge file:

-rw------- 1 laussy laussy 16767073378 Feb 20 15:37 All mail Including Spam and Trash-2.mbox
-rw------- 1 laussy laussy       47501 Feb 21 09:22 takeout-20160214T164853Z-3.zip
-rw------- 1 laussy laussy       42731 Feb 21 09:22 takeout-20160214T164853Z.zip

3. Then go put fire in Gmail. That's what Carlos suggested as an example:

larger:1M after:2009/4/28 before:2015/4/29 

I wouldn't kill only larger ones, as this only makes a mess with the backup. I nuke everything but the first day, to keep a timestamp:

after:2007/2/28 before:2014/1/1 

4. Then select all and delete:

Gmail-full4.png>

That takes a while to process, as hundreds of thousands of emails get sent to some /dev/null somewhere. But then you feel you can breath again:

5. Finish it off by emptying the Trash:

Gmail-full5.png

You can sip coffee while watching the slow process of irreversible termination with its counters hopping by the thousands of these emails you wrote, read, ignored, looked for with keywords or approximate date and rediscovered as precious lost items of far less important than you thought when starting an expedition to dig them out...

Gmail-full6.png

But don't daydream too much if you could change your mind, because that's actually faster to get rid of Gigabytes of text than to write and read them.

And that's where we are now:

Gmail-full7.png

As we can see, a couple of years—the last ones—weights as much as eight older ones, for about half the capacity. This seems an exaggerated version of a correct exponential trend, that will eventually make such space-saving attempts futile.

Update from 23 May (2018)

I had to do this procedure again in May (2018). The selection was:

after:2007/2/28 before:2017/1/1

and after exporting a backup of all emails, this brought me from 16.93 GB (99%) of 17 GB used to 7.74 GB (45%) of 17 GB by removing 12864 conversations (which gather many more emails, I guess). 9.19GB in two years of emails. On this occasion, emails from 2017 (and one from 2018!) that were in threads started in the deleted timespan have been deleted as well.

Gmail-space-23May18.png