Fix Apple Mail problemsApple Mail
Apple Mail taking up too much space on a Mac
The space is your mail and the attachments Mail downloaded. Clear it from inside Mail, safest steps first, and know what each one does on the server.
When Storage settings show Apple Mail taking up space by the gigabyte, that number is your mail: the copies of your accounts' messages kept on the Mac, the attachments Mail downloaded with them, and copies of files you opened. You can clear Mail storage on a Mac without losing mail if you do it from inside Mail and in the right order. The fixes below start with mail you already threw away and settings that leave your mail server alone, and end with the ones that delete mail for good. Each one says what happens on the server.
In short
- Erase what you already deleted: Mailbox › Erase Deleted Items, then Mailbox › Erase Junk Mail.
- Set Download Attachments to Recent or None, and clear the copies of attachments you opened. Neither touches the server.
- Remove accounts you no longer read in Mail. Their mail leaves the Mac, and Apple says copies stay on the server.
- Deleting big messages and Message › Remove Attachments come last, because on iCloud, IMAP and Exchange accounts they delete from the server too.
- Don't delete files inside
~/Library/Mailby hand.
Where Mail keeps its data
| What | Where | Delete by hand? |
|---|---|---|
| Messages, mailboxes and Mail's index | ~/Library/Mail, in a folder named V10 on macOS 13 through 27 | No. Delete mail from inside Mail. |
| Attachments you opened (Mail Downloads) | ~/Library/Containers/com.apple.mail/Data/Library/Mail Downloads | Unedited files only, with Mail quit |
| Attachments you saved | Your Downloads folder, or the one chosen in Mail › Settings › General | They're your files |
| The Mail app | The read-only system volume | You can't (why) |
Why it grows: for IMAP and Exchange accounts, Apple's guide describes messages and attachments "stored on your Mac," and Mail always downloads media attachments such as images, PDFs, video and audio, whatever you set. Several accounts with years of mail in them add up fast. Deleted mail also keeps its space until the Trash is erased.
See how much Mail uses
- On macOS 13 or later, choose Apple menu › System Settings › General › Storage. Apple describes the Mail category as one that "contains emails and attachments." On earlier versions it's Apple menu › About This Mac › Storage.
- On macOS 27, Control-click an account's inbox in Mail's sidebar and choose Get Account Info. It shows the account's storage capacity and how much each mailbox uses.
- In Mail, View › Sort By › Size puts the biggest messages at the top of a mailbox.
- For the folder itself, choose Go › Go to Folder in the Finder, enter
~/Library/Mail, select V10 and press ⌘ I. The Info window gives its size.
Make a Time Machine backup before the later steps. Apple notes that backups can restore content Mail downloaded.
1. Erase Trash and Junk
Apple's guide is plain about this one: messages you recently deleted "are in the Trash mailbox but haven't yet been removed from the mail server." Until they're erased they take space on the Mac and on the server.
- Choose Mailbox › Erase Deleted Items, then pick one account or all of them.
- Choose Mailbox › Erase Junk Mail (⌥ ⌘ J).
- To keep it from piling up again, open Mail › Settings › Accounts › Mailbox Behaviors for each account and set "Erase deleted messages" and "Erase junk messages" to anything but Never. Apple suggests that for junk "to avoid exceeding storage limits set by your email account provider."
Erased messages are gone from the server as well. With Gmail, deleting from a label can leave the letter in All Mail (why that happens).
2. Download fewer attachments
In Mail › Settings › Accounts, select an account, open Account Information and change Download Attachments:
- All: Mail downloads every attachment.
- Recent: only attachments received in the past 15 months.
- None: Mail doesn't download them.
The catch is in Apple's own description: the setting covers file types like spreadsheets and zip files, while Mail "always downloads media attachments." Apple also doesn't say whether switching to Recent or None removes attachments Mail already downloaded. Rebuild (step 4) is the documented way to make Mail download a mailbox again from scratch.
Storage settings have a related switch. Optimize Storage, under System Settings › General › Storage, saves space "by keeping only recent email attachments on this Mac when storage space is needed." It also removes Apple TV movies and shows you've watched, and Apple doesn't spell out how it works alongside Mail's own setting.
Nothing changes on the server with either. The attachments stay in their messages there.
3. Clear attachments you opened
When you open an attachment, Mail keeps a copy in its Mail Downloads folder. In Mail › Settings › General, "Remove unedited downloads" decides when those copies go. Apple's default: an attachment you haven't edited or saved is deleted when you delete the message that contains it.
Copies from messages you kept stay, sometimes for years. In a TidBITS Talk thread from December 2022, Mac users found 7 GB and nearly 12 GB there, with files going back to 2012. To clear them:
- Quit Mail.
- In the Finder, choose Go › Go to Folder and paste
~/Library/Containers/com.apple.mail/Data/Library/Mail Downloads. - Move what you don't need to the Trash, and skip any file you opened and changed. The setting only removes unedited downloads, so an edited copy stays here, and it may be the only one with your changes.
Apple's guide only says this folder is "a special folder in your home Library folder." The full path above is the one Mac users and the guides ranking for this search give. Nothing changes on the server: these are copies.
4. Rebuild a mailbox that stays big
Select the mailbox and choose Mailbox › Rebuild. For IMAP and Exchange accounts, Apple says the messages and attachments stored on your Mac "are discarded, and then downloaded again from the mail server." The mailbox looks empty until the download finishes, which for a large one takes a while. Use it after changing Download Attachments, or when a mailbox seems much bigger than its mail.
Apple's page doesn't cover POP accounts or On My Mac mailboxes, so don't rebuild those without a backup. For IMAP and Exchange nothing changes on the server.
Gmail has a setting of its own. Google's fix for mail apps that download too slowly is a folder size limit: in Gmail on the web, open Settings › See all settings › Forwarding and POP/IMAP, and under Folder size limits choose "Limit IMAP folders to contain no more than this many messages" (Google suggests 10,000 or fewer). Mail then syncs at most that many messages per Gmail folder, and the rest stay in Gmail on the web. Work or school accounts may not have that tab. Apple doesn't say what Mail does with messages it already downloaded, so rebuild big mailboxes afterward if the space doesn't come back.
5. Remove accounts you don't read in Mail
This is the one step that drops a whole account's copy from the Mac and keeps the mail. Choose Mail › Settings › Accounts, select the account and click the Remove button. Apple: "the account's messages are removed from your Mac," and "Copies of messages remain on the account's mail server." If other apps on the Mac use the account, Mail sends you to System Settings › Internet Accounts, where you turn Mail off for it.
Check first if you aren't sure the server still has everything, as with a POP account set to delete mail from the server. Apple suggests copying what you want to keep into an On My Mac mailbox, but that copy stays on the Mac and keeps its space. To get the space back too, select the mailboxes, choose Mailbox › Export Mailbox and save the .mbox files in a folder on a backup drive.
6. Delete big messages you don't need
To find them, type "attachment" in Mail's search field and choose "Message with attachments" (that's Apple's macOS 27 wording), click "Search all mailboxes" if needed, then sort by size. Delete what you don't need and erase the Trash as in step 1.
This is where mail leaves the server. On iCloud, IMAP and Exchange accounts, a message deleted in Mail is deleted on the server once the Trash is erased, and it's gone from your iPhone and webmail too.
For iCloud Mail there's also iCloud Mail Cleanup on iCloud.com. Its rules can delete old promotions, unsubscribe you from mailing lists in bulk and archive old messages such as transactions. Apple says "Your inbox isn't affected until you turn on a cleanup recommendation."
7. Remove attachments but keep the message
Leave this for files you're sure about. Select messages and choose Message › Remove Attachments. The message stays, marked to show its attachments were removed, and Apple warns that "For IMAP accounts, attachments are also deleted from the mail server and can't be retrieved." Save any file you want first. Mail doesn't delete attachments you've saved.
What each step does on the server
| Step | On the Mac | On the server |
|---|---|---|
| Erase Deleted Items, Erase Junk Mail | Space freed | Erased too (Gmail may keep it in All Mail) |
| Download Attachments: Recent or None | Fewer files downloaded | No change |
| Optimize Storage | Only recent attachments kept when space runs low | No change |
| Clear Mail Downloads | Opened copies gone | No change |
| Rebuild (IMAP, Exchange) | Discarded and downloaded again | No change |
| Gmail folder size limit | Fewer messages per folder | Nothing deleted |
| Remove the account | Its mail leaves the Mac | Copies stay |
| Delete messages | Space freed once erased | Deleted on iCloud, IMAP and Exchange |
| Remove Attachments | Space freed | IMAP: deleted, can't be retrieved |
One setting works the other way round. POP accounts have "Remove copy from server after retrieving a message" under Mail › Settings › Accounts › Advanced. Apple lists it among the ways to free space on an email account, meaning the provider's space. It frees nothing on the Mac and can leave the Mac's copy as the only one.
What not to delete by hand
- Anything inside
~/Library/Mail. Apple's guides have no step that deletes files there. It holds your messages (for On My Mac mailboxes and some POP accounts, maybe the only copy) and Mail's index. Some pages ranking for this search send you in to dig out attachment folders; delete the message or use Remove Attachments instead. The one forum fix that does delete files there, the Envelope Index, is for broken search, not space. - The whole
~/Library/Containers/com.apple.mailfolder. One guide in today's top results says to delete it to reset Mail. Apple documents no such step. Only the Mail Downloads folder inside it holds attachment copies. - The Mail app. It's part of macOS and can't be deleted, and the space is your mail anyway. More in how to delete the Mail app on a Mac.
In Roost
I make Roost, a Mac mail app for people with several inboxes, and it doesn't keep a full copy of every account. The Inbox, Sent, Archive, Trash and Spam keep the last 90 days, plus older Inbox mail that's unread or flagged. Another folder you open keeps its newest 250 letters. Whole letters are saved ahead of time only for up to 150 of the newest in each Inbox, each up to 2 MB; a bigger one, usually a letter with attachments, downloads when you open it.
Roost keeps its mail in ~/Library/Application Support/Roost/, and files you open from a letter go to ~/Library/Caches/Roost/Attachments and are removed with their letter. As mail passes 90 days it leaves the Mac by itself and nothing changes on the server; ⌘ K can still search older mail on the servers. The 90 days isn't a setting. Remove Inbox… in Settings deletes Roost's copy of an inbox, its saved drafts and its password, and leaves the server alone.
Questions
Why is Apple Mail taking up so much space on my Mac?
Mail keeps copies of your accounts' messages and their attachments on the Mac, always downloads media attachments like images and PDFs, keeps copies of attachments you open, and holds deleted mail until the Trash is erased. Several accounts with years of mail can come to many gigabytes.
How do I clear Mail storage on a Mac without deleting emails?
Set Download Attachments to Recent or None, clear unedited files from Mail Downloads, rebuild big IMAP or Exchange mailboxes, and remove accounts you don't read in Mail. None of those deletes mail on the server.
Is it safe to delete the Mail folder in Library?
No. ~/Library/Mail holds your messages and Mail's index, and for On My Mac mailboxes and some POP accounts it may hold the only copy. Delete mail from inside Mail instead.
Can I delete the Mail Downloads folder?
You can trash the files inside it with Mail quit. They're copies of attachments you opened, and the originals stay in their messages. Keep any file you edited, since that copy may be the only one with your changes.
Why is Mail storage still high after I deleted emails?
Deleted mail stays in Trash and Junk until you erase it. Mail in On My Mac mailboxes, a Trash mailbox set to On My Mac, and attachments you saved also stay. Erase both mailboxes, then rebuild a mailbox that still looks too big.
Does deleting email in Mail delete it from iCloud or Gmail?
On iCloud, IMAP and Exchange accounts, yes, once the Trash is erased. Gmail can keep a letter deleted from a label in All Mail. Removing the account from Mail deletes nothing on the server.
Does moving iCloud mail to On My Mac save space?
It frees iCloud storage: Apple says mail moved to your Mac no longer counts against it. But the same mail now takes space on the Mac, and that copy exists only on this Mac, so back it up.
Sources
- Apple, Delete emails and manage storage in Mail on Mac (Mail User Guide, macOS 27; the macOS Tahoe 26 page has no Get Account Info tip), read 1 December 2026.
- Apple, Mail User Guide (macOS 27): Account Information settings, General settings, Mailbox Behaviors settings, View, save, or delete email attachments, Add and manage email accounts, Import or export mailboxes, Search for emails, Keyboard shortcuts, read 1 December 2026.
- Apple, Rebuild mailboxes in Mail on Mac (Mail User Guide, macOS Sequoia 15; the macOS 27 guide has no Rebuild page), read 1 December 2026.
- Apple, Mac User Guide (macOS 27): Change Storage settings, Optimize storage space, Get file, folder, and disk information, read 1 December 2026.
- Apple, Free up storage space on Mac, published 16 October 2026, read 1 December 2026.
- Apple, Manage your iCloud storage on your Apple device, published 14 September 2026, and Automatically clean up your iCloud Mail inbox on iCloud.com, read 1 December 2026.
- Google, Add Gmail to another email client (Gmail Help), read 1 December 2026.
- C-Command, SpamSieve Manual: How can I rebuild Apple Mail's database? (Mail folder names by macOS version), read 1 December 2026.
- TidBITS Talk, Don't let Mail attachments accumulate and waste space (December 2022 to January 2023), read 1 December 2026.
- The Eclectic Light Company, Reading the Finder's Get Info dialog, 9 June 2026, read 1 December 2026.