Mail Making System Data Huge on Mac: What's Safe to Delete
Mail cache and mailbox files can make System Data huge on a Mac. See what's in ~/Library/Mail, what's safe to remove from inside Mail, and how to check.
GuideUpdated 6 min read
On this page
You looked at your disk with a map app and found that Mail files from 2021 to 2023, some around 50 GB each, are what make System Data huge. Now you want to know whether it is safe to delete them.
Why Mail makes System Data so large
Mail keeps a local copy of your mailboxes in ~/Library/Mail, plus an index of what is in them. macOS files this under System Data, so a big mailbox shows up there rather than under Documents or Apps. The usual contributors, most common first:
- Years of attachments. Photos, PDFs and presentations dominate most mailboxes.
- Deleted Items and Junk that were never erased. Messages you deleted still occupy space on your Mac until you erase them.
- Local-only mail. POP accounts and mailboxes under On My Mac exist only on your Mac.
- Attachments Mail saved when you opened them. These sit in a separate Mail Downloads folder.
The exact split on your Mac is not something we can know from here. Measure first.
Check how big Mail really is
- In Finder, choose Go > Go to Folder… (Shift-Command-G), type
~/Library, and press Return. - Select the
Mailfolder and press Command-I for Get Info. The size settles once Finder finishes counting.
You can also open System Settings > General > Storage for a category overview. If Mail is only a fraction of System Data, other items (caches, snapshots, developer files) make up the rest.
Check whether the mail is also on a server
This decides how much risk you take.
- Server-synced accounts (iCloud, Gmail, Outlook, Fastmail and similar, set up as IMAP or Exchange): the folder is a downloaded copy, and Mail can fetch messages again.
- POP accounts and anything under On My Mac in Mail's sidebar: the files on your Mac may be the only copy. Deleting them deletes the mail for good.
Fix 1: Erase Deleted Items and Junk
This is the quickest win.
- Open Mail.
- Choose Mailbox > Erase Deleted Items > In All Accounts.
- Choose Mailbox > Erase Junk Mail if your accounts use a Junk mailbox.
Fix 2: Delete the largest messages
- Open a mailbox such as Inbox, Archive or Sent.
- Choose View > Sort By > Size.
- Review the biggest messages and delete the ones you don't need.
- Run Mailbox > Erase Deleted Items > In All Accounts again so they leave your Mac.
Message > Remove Attachments also exists. It strips the attachment from the message itself, and on server-synced accounts that change can sync to the server, so treat it as deleting the attachment.
Fix 3: Download fewer attachments
- In Mail, open Mail > Settings and go to Accounts.
- Select an account and look for the attachment download option (in current versions it is on the Account Information tab). Labels and choices vary by macOS version and account type.
- Set it to download less, such as recent attachments only or none.
Also check Mail's settings for a Remove unedited downloads option, which clears attachments Mail saved when you opened them.
Fix 4: Export local-only mail, then clear it
If much of the space is in On My Mac mailboxes or a POP account, use Mail's own export.
- Select the mailbox in Mail's sidebar.
- Choose Mailbox > Export Mailbox… and save it to an external drive.
- Open the exported folder on the drive and confirm it is there.
- Delete the mailbox in Mail, then erase deleted items.
Which fix to use
| Fix | Frees | Risk | Use it when |
|---|---|---|---|
| Erase Deleted Items / Junk | Mail you already deleted | Permanent, but you chose it | Always first |
| Delete big messages | Largest items first | Permanent | You can pick out what you don't need |
| Download fewer attachments | Future attachment storage | None to existing mail | Attachments are the bulk |
| Export, then delete | Whole mailboxes | Low if the export is verified | Mail is local-only or very old |
Delete ~/Library/Mail in Finder | Everything | High | Not as a first step |
Why not delete the folder in Finder
Mail's index tracks what is on disk. Files removed behind its back can leave the index out of step, and on local-only accounts you may destroy your only copy. If every account is server-synced, Mail can usually rebuild from the server, but you would still lose anything stored only on your Mac. Use Mail's own tools.
What Gigabroom covers (and what it doesn't)
We make Gigabroom, and its role here is limited. It is a disk map plus cleaners, and everything inside ~/Library/Mail is on its protected list, so it never moves mailboxes to the Trash. What it does:
- Shows Mail sizes. The System Data screen (⌘8) has a Mail row in its breakdown, and Backups & Libraries (⌘9) lists Mail Downloads & Attachments with Reveal in Finder.
- Cleans one Mail folder. Backups & Libraries has a Mail Downloads Folder row with Review…. It lists attachments Mail saved when you opened them. Unedited items are pre-selected; items edited after Mail saved them are marked Edited and can't be selected. Confirmed items go to the Trash, and space comes back only after you empty it.
Mail sizes need Full Disk Access. Without it Gigabroom skips Mail's folders, so totals come out low and rows show a dash or "Couldn't be read."
- Open Gigabroom's Settings (⌘,) and go to Access.
- Click Open Settings… next to Full Disk Access.
- Turn Gigabroom on. If it isn't listed, click + and choose Gigabroom from Applications.
- Rescan.
See the Backups & Libraries doc and the permissions doc. Gigabroom is part of MacSuite, and you can try it free for 7 days.
Checklist before you erase anything
- Time Machine backup finished.
- You know which accounts are server-synced and which are On My Mac or POP.
- Local-only mailboxes exported and verified on the drive.
- You are working inside Mail, not Finder.
If it doesn't work
- System Data didn't shrink after erasing mail. Storage figures can lag. Quit Mail, wait, and check again. Local Time Machine snapshots can also hold space from deleted files; they count as purgeable and macOS frees them itself. See what purgeable space is.
- Mail is big, but not as big as System Data. Other parts add up too. See how to clear System Data on Mac.
- Mail re-downloads after you cleaned up. On server-synced accounts Mail refills what its settings allow. Lower the attachment setting from Fix 3.
If the size still makes no sense, contact Apple Support and include your macOS version, the size of ~/Library/Mail from Get Info, your account types and what you already tried.
My Mac's System Data is very large and ~/Library/Mail is about X GB.
macOS version: (your version). Accounts: (iCloud / Gmail / POP / On My Mac).
I have run Mailbox > Erase Deleted Items > In All Accounts and deleted large
messages, but the size has not dropped. How can I safely reduce Mail's local storage?Common questions
Can I delete the whole ~/Library/Mail folder?
Not as a first step. With only server-synced accounts Mail can usually download it again, but anything stored only on your Mac would be lost.
Is it safe to delete Mail Downloads?
Generally yes. They are copies Mail saved when you opened attachments, and the originals remain in the messages. Gigabroom's review won't let you select a file you edited.
Will clearing Mail Downloads in Gigabroom free space right away?
No. Items go to the Trash, and the space returns when you empty it.
Why does a disk map show Mail files but Gigabroom won't trash them?
Mail's store is personal account data, so Gigabroom only reveals it in Finder. The cleanup belongs in Mail.