Mail and Messages attachments are taking space

Years of photos in chats and attachments in mail add up. Both apps can clean themselves; their folders should not be edited by hand.

Measure (read-only)

 Terminal
du -sh ~/Library/Mail ~/Library/Messages/Attachments 2>/dev/null
du -sh ~/Library/Containers/com.apple.mail/Data/Library/Mail\ Downloads 2>/dev/null

If Terminal says Operation not permitted, give it Full Disk Access in System Settings → Privacy & Security, or use the Storage screen below.

Messages

  1. System Settings → General → Storage, click the ⓘ next to Messages: it lists large attachments, and you can delete them one by one. (Deletes; with Messages in iCloud this deletes them on your other devices too.)
  2. In Messages, Settings → General → Keep messages: choosing 1 year or 30 days deletes older messages and their attachments. (Deletes, everywhere if Messages in iCloud is on.)

Mail

  • Mail Downloads holds copies of attachments you opened; those copies stay in the message. See the Mail Downloads page.
  • For IMAP accounts, Mail → Settings → Accounts → Account Information → Download Attachments can be set to Recent or None, so old attachments stay on the server.
  • Delete large old messages in Mail itself, then Mailbox → Erase Deleted Items. (Deletes.)
Do not delete inside ~/Library/Mail or ~/Library/Messages in Finder. Both are databases: removing files by hand can corrupt them or lose messages.
Junk Raccoon never touches Mail or Messages. It skips both folders on purpose.
Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac