CleanMate

All guides · macOS · Updated

Mail on a Mac takes up GBs: attachment copies, the IMAP cache and how to shrink it

Where Apple Mail keeps its data (~/Library/Mail and Mail Downloads), why it grows to tens of GB, how to see the size, delete opened attachment copies safely, stop Mail from downloading every attachment, and what not to delete.

Download for macOS — free and open source

CleanMate Space Lens on a Mac, showing which folders, such as the Mail folder, take the most spaceCleanMate Space Lens on a Mac, showing which folders, such as the Mail folder, take the most space

Apple Mail keeps a local copy of your mailboxes, and by default it downloads every attachment of every message. With an IMAP account of a few years (Gmail, iCloud, Outlook, a work server) that is often 10 to 50 GB on your Mac, counted as Mail or System Data in System Settings › General › Storage. On top of that, each attachment you open is copied to a separate folder that Mail rarely empties.

Where Mail keeps its data

du -sh ~/Library/Mail
du -sh ~/Library/Mail/V*/* 2>/dev/null | sort -h        # one folder per account
du -sh ~/Library/Containers/com.apple.mail/Data/Library/Mail\ Downloads ~/Library/Mail\ Downloads 2>/dev/null

If Terminal prints “Operation not permitted”, it needs Full Disk Access (System Settings › Privacy & Security › Full Disk Access); see Full Disk Access on macOS.

Delete the attachment copies

The files in Mail Downloads are only copies, so deleting them loses nothing as long as the message still exists. Quit Mail, then move the folder’s contents to the Trash in Finder (Go › Go to Folder… and paste the path), or:

osascript -e 'quit app "Mail"'
open ~/Library/Containers/com.apple.mail/Data/Library/Mail\ Downloads

One catch: if you opened an attachment and edited it in place (a Word file, a PDF you signed), the edited version only exists in that copy. Save it somewhere else first.

Stop Mail from downloading every attachment

In Mail, open Mail › Settings › Accounts, choose the account, then Account Information › Download Attachments:

For IMAP and iCloud accounts, None or Recent keeps the local copy from growing without touching the server: Mail fetches an attachment when you open its message. Your messages and attachments stay on the server and on your other devices. Attachments already downloaded may stay until Mail rebuilds the mailbox (Mailbox › Rebuild) or the account is added again.

What not to do

How CleanMate does it

On macOS (all macOS features):

For the rest of what macOS counts as System Data, read “System Data” on a Mac takes tens of GB. Download CleanMate.

FAQ

Is it safe to delete Mail Downloads? Yes, with Mail closed. They are copies; the attachment stays in the message.

Will Download Attachments: None delete my mail? No. For IMAP and iCloud accounts the messages stay on the server; Mail just keeps fewer attachments on this Mac.

Why is Mail still big after that? The messages themselves and the index (Envelope Index) take space too. Only fewer messages on the server makes that smaller.

Looking for a free MacCleaner Pro alternative? See how CleanMate compares, feature by feature.

Skip the commands

Open source — star it on GitHub: CleanMate for macOS

How CleanMate decides what is safe to remove →