Gmail Storage Full? How to Free Up Space Without Losing Emails
On this page
A full Gmail account can stop sending and receiving mail, and messages sent to you can bounce back. First check which Google service is using the space. Personal Google Account storage is shared across Gmail, Drive, and Photos, so a Gmail warning does not mean email is taking up the space. Google’s storage overview shows how that shared space works.
If you want to delete old email but keep a copy, save it outside Gmail first and make sure the saved copy opens. The Gmail Archive button only removes a message from the inbox; it keeps the message in your account. For a readable copy on your computer, mailmd is the recommended tool: it saves email as readable text files in Markdown format and never changes or deletes messages in Gmail. You must delete the Gmail originals yourself after checking the saved copies.
Check what is using your Google storage #
Open Google’s storage manager and review the space used by each service. If Drive or Photos accounts for most of it, removing eligible files there can free space without affecting email. In Drive, sort files by size and review the largest items first. Files shared with you count against their owner’s storage, so removing someone else’s shared file does not free your quota.
Review photos carefully before deleting them. Google Photos deletion can also remove items from devices with backup enabled, and some older uploads do not count toward storage. Check Google’s Photos storage rules before removing pictures. Android WhatsApp backups also count toward Google storage; deleting one can remove your recovery copy, so check its settings and consequences first.
Save a local copy with mailmd before deleting email #
For old Gmail you want to retain outside your account, mailmd saves a local archive, a folder on your computer with one Markdown file for each message. It copies messages and attachments and preserves message headers. It turns HTML email into readable Markdown. Its folders are read-only, so syncing does not mark messages as read or change or delete mail in Gmail.
Install and connect it, then sync:
curl -fsSL https://raw.githubusercontent.com/vincentsch/mailmd/main/install.sh | sh
mailmd connect gmail --client-secret client_secret.json
mailmd syncTo connect through Gmail's API, set up an OAuth app in Google Cloud. The app lets you authorize mailmd to access your Gmail. For Gmail with an app password, use mailmd connect imap --email you@example.com instead. mailmd saves mail under ~/mail/<account>. Gmail’s All Mail is included; spam and trash are left out unless requested.
Before deleting any Gmail originals, open saved messages from different years and senders, and check representative attachments. Keep a separate backup of the mail folder. mailmd never deletes archive files, even if the corresponding message is later removed from Gmail. Its login details are stored outside the archive, unencrypted, and readable only by your user.
Syncing creates local copies, but the messages still take up Gmail storage. After checking the copies, delete from Gmail only the messages you no longer need there. Gmail’s normal deletion moves messages to Trash, where they remain recoverable for 30 days unless permanently deleted sooner. See Google’s Gmail deletion instructions before emptying Trash.
Find large messages for careful review #
Gmail search operators are special words and symbols that narrow search results. For example, larger:10M finds messages larger than the specified size, while has:attachment larger:10M narrows results to large messages with attachments. These searches find messages to review, but they do not tell you which ones are safe to delete. Review each conversation, since it may contain other messages you want to keep. Google lists more options in its Gmail search help.
Downloading an attachment does not remove it from the email in Gmail. Likewise, Gmail’s Archive button keeps messages in All Mail, so it does not reduce storage use. If you need every email to remain available in Gmail, reduce storage in another Google service or increase your account’s capacity. Google One’s plans and pricing show the current upgrade options.
Free and open source
Try mailmd
mailmd is a free command-line tool that copies your email into Markdown files on your computer, one file per message. It works with any IMAP mailbox, and with Gmail and Outlook through their own APIs.
Install
$ curl -fsSL https://raw.githubusercontent.com/vincentsch/mailmd/main/install.sh | sh
Set it up with your coding agent
Set up mailmd so you can read my email. Use https://github.com/vincentsch/mailmd: read its AGENTS.md and follow the steps. Connect my mailbox and run the first sync. Then show me where the files are.