Is it safe to delete ~/Library/Mail?
- No.
~/Library/Mailis Mail’s copy of your email: every mailbox, message and downloaded attachment, including mailboxes kept On My Mac and POP mail that may exist nowhere else. - What it costs you: anything that was only on this Mac, plus a long download of everything else from your mail servers.
- Does it come back? Only what’s still on the servers. To make Mail smaller, work from inside Mail with the steps below.
- SiftMac’s verdict: Leave it
1. What it is
Mail keeps your email on the Mac so it can show and search it offline, and that copy is ~/Library/Mail. Inside is a folder named V plus a number for the current storage format (V10 on recent versions of macOS), holding a folder for each account named by a long ID, a Mailboxes folder for mailboxes stored On My Mac, and MailData, with Mail’s index of every message.
Messages are stored one per file, with the attachments Mail downloaded next to them. For iCloud, Gmail, Exchange and other IMAP accounts, all of that is a copy of what’s on the server. For a POP account, or anything in On My Mac, this Mac may hold the only copy.
2. Where it is
~/Library/Mail
macOS guards it, so Terminal needs Full Disk Access to look inside. Looking is harmless; deleting or moving files there by hand is what causes trouble.
3. How big it gets
It depends on how much mail you keep, and mostly on attachments. Storage settings shows it as Mail (System Settings › General › Storage), which Apple describes as emails and attachments. In Terminal:
du -sh ~/Library/Mail
du -sh ~/Library/Mail/V*/* 2>/dev/null | sort -h
The second line shows each account’s folder, named by ID rather than address, with the biggest last.
4. How to make it smaller, safely
Work from inside Mail, so your servers and other devices stay in step:
- Erase what you’ve deleted. Deleted messages stay until they’re erased: choose Mailbox › Erase Deleted Items and pick an account. In Mail › Settings › Accounts › Mailbox Behaviors, “Erase deleted messages” makes Mail do it on a schedule.
- Find the big messages. Choose View › Sort By › Size, then delete or move the largest ones you don’t need.
- Remove attachments you’ve saved elsewhere. Select the messages and choose Message › Remove Attachments. The messages stay, marked as having had their attachments removed. For IMAP accounts the attachments are deleted from the server too and can’t be retrieved, so save any you need first.
- Download fewer attachments. In Mail › Settings › Accounts › Account Information, set Download Attachments to Recent, which downloads only those received in the past 15 months, or None. Mail always downloads media attachments, such as images, PDFs, video and audio.
- Remove an account you don’t use here. In Mail › Settings › Accounts, select it and click the remove button. Apple says the account’s messages are removed from your Mac and copies remain on the mail server. If you’re not sure everything is on the server, copy what you need to a mailbox you’re keeping first.
Don’t delete ~/Library/Mail, a V10 folder or an account’s folder in Finder. Anything that was only on this Mac is lost, and Mail has to download the rest again.
5. What happens afterwards
- Erased messages leave the Mac, and the server for IMAP accounts, since Mail keeps deleted messages on the server until it erases them.
- Removed attachments are gone from their messages; Mail notes the removal in each one.
- With Download Attachments set to Recent or None, older attachments of other types stay on the server, and you can still download one from its message.
- A removed account frees its whole folder. Add it back and Mail downloads its mail again.
Questions
Why is Mail taking up so much space on my Mac?
Mail keeps a copy of every message it shows you, plus the attachments it has downloaded, for every account. Large IMAP accounts such as Gmail and years of attachments add up; the Download Attachments setting and Remove Attachments are the levers to pull.
Can I delete the V10 folder?
No. It is your Mail store: deleting it deletes your local mail, including anything kept only on this Mac.
Does Optimize Storage help with Mail?
It can. Apple’s Optimize Storage recommendation in Storage settings can keep only recent email attachments on the Mac when space is needed.
Is Mail Downloads the same thing?
No. That’s a much safer folder of copies Mail makes when you open attachments: is it safe to delete Mail Downloads?
How SiftMac handles it. SiftMac never touches your mailboxes or messages; in Mail’s folders it reads only names, sizes and dates. Its Attachments category lists the attachments Mail downloaded, one line per account. From an iCloud, Gmail, Exchange or other IMAP account they’re marked Rebuilds, since opening the email downloads them again; from POP or On My Mac they’re You decide, since this Mac may hold the only copy. Nothing is picked until you tick it, nothing is touched while Mail is open, and what you clean waits on the Undo Shelf for 7 days.
Download SiftMac · scanning is free, and so is your first 2 GB of cleaning · See how it works