Delete Messages attachments on Mac without losing chats
Do not delete~/Library/Messages/Attachments
Messages attachments can take up many GB. Why not to delete them in Finder, and the safe way to clear photos and videos but keep your chats.
Verdict: Do not delete. Don't delete files from ~/Library/Messages/Attachments in Finder: Messages still expects them, and removing them behind its back can leave conversations full of photos and files that no longer open. Delete attachments inside Messages or in Storage settings instead, which frees the same space and keeps your history consistent.
What lives in ~/Library/Messages/Attachments
Every photo, video, voice message, document and other file sent or received in Messages on this Mac is saved here as an ordinary file, sorted into folders with random-looking names. The conversations themselves, including the text and a record of each attachment, sit in database files one level up in ~/Library/Messages.
Apple's Change Storage settings on Mac describes the Messages category as content from Messages conversations, including attachments. If Messages in iCloud is turned on, the same history syncs to your iPhone, iPad and other Macs, and the attachments count towards your iCloud storage.
What happens if you delete it
Deleting files here in Finder does not tell Messages anything. The conversation still lists each attachment, but the file behind it is gone, so pictures and documents can fail to open. Treat a file removed this way as lost for good unless you have another copy, and do not count on Messages tidying up after you.
Deleting inside Messages works differently. Apple's Delete messages and conversations in Messages on Mac explains that deleted messages and attachments go to Recently Deleted for up to 30 days, where you can recover them. After 30 days they are removed from all your devices, and after 40 days they are permanently deleted from iCloud. That is a safety net Finder cannot give you.
Nothing in this folder is a cache. No attachment rebuilds on its own.
How to check its size safely
Storage settings shows it without any risk:
- Choose Apple menu > System Settings > General > Storage and wait for the bar to finish measuring.
- Click the info button next to Messages to see the attachments it holds.
From Terminal:
du -sh ~/Library/Messages/Attachments
This only reads. macOS keeps Messages private, so it prints "Operation not permitted" unless Terminal has Full Disk Access (System Settings > Privacy & Security > Full Disk Access). If you grant it just to measure, switch it off again afterwards.
The safest way to get the space back
- Delete attachments in Storage settings. In System Settings > General > Storage, click the info button next to Messages, select the attachments you don't need and click Delete.
- Delete them conversation by conversation. In Messages, select a conversation and click the contact or group icon at the top. Scroll to a category such as Photos, click Show more, Shift-click the items to remove, Control-click the selection and choose Delete.
- Let Messages clear old history for you. Choose Messages > Settings, click General, and set Keep messages to 30 days or 1 Year. Any option other than Forever removes older conversations, including their attachments, once that period passes.
- Empty Recently Deleted if you need the space now. Choose View > Recently Deleted, select the conversations and click Delete. Otherwise they leave on their own after 30 days.
Warning: Keep messages deletes the text of old conversations as well as the files, and with Messages in iCloud turned on the deletion reaches every device. Before you change it, drag any photo or document you want to keep out of the conversation to save a copy.
What never to touch
- The
Attachmentsfolder itself, or the numbered folders inside it. - The database files in
~/Library/Messages. They hold your conversations, and editing or deleting them can damage the whole history. - Cleaner apps or scripts that empty the Attachments folder wholesale. They do exactly what Finder would, with less warning.
rmon anything under~/Library/Messages. It skips the Bin and Recently Deleted.
Mail is the other app that quietly stores years of files; see is it safe to delete ~/Library/Mail. Photos people send you may also be worth saving to your Photos library, and iCloud Drive has the same synced rules described in the Mobile Documents page. For everything else, start with the complete guide to freeing up space on a Mac.
How Headroom helps
Headroom never changes anything in ~/Library/Messages, Attachments included. The folder is on its list of protected places, checked again right before every change. Its free Space map shows how big Messages has grown, labelled "Messages and attachments", once you allow Full Disk Access; until then it counts Messages in the "macOS and locked folders" block and says so. Clear attachments in Messages, then let the cleaner handle caches and build files. Download Headroom: scanning is free, and the $19 one-time licence clears what you tick on up to three Macs.
Questions
Can I delete the Attachments folder in Messages on Mac?
Not by hand. Delete attachments inside Messages or in System Settings > General > Storage > Messages, so the app knows they are gone and your other devices stay in step.
Does deleting Messages attachments on my Mac delete them on my iPhone?
If Messages in iCloud is on, yes. Deleted items stay in Recently Deleted for up to 30 days, then Apple removes them from all your devices.
How do I stop Messages taking up so much space?
Choose Messages > Settings > General and set Keep messages to 30 days or 1 year. Messages then removes older conversations, including their attachments, by itself.
Why does Terminal say Operation not permitted for ~/Library/Messages?
macOS keeps Messages private. Terminal can only read the folder once you give it Full Disk Access in System Settings > Privacy & Security.