What is ~/Library/Messages/Attachments, and can I delete it?

~/Library/Messages/Attachments stores the photos, videos and files you send and receive in Messages, so it is your data and is not a cache to clear in bulk.

Shiva ChandraMaker of Clean House · · 2 min read
Short answer

This folder keeps every attachment from your conversations on the Mac. It can grow to tens of gigabytes after years of texting. It is not rebuildable junk: if Messages in iCloud is off, deleting these files can remove the only copy. Look first, and delete from inside Messages, conversation by conversation.

Path
~/Library/Messages/Attachments
What it is
The photos, videos, audio and files attached to your messages, in nested folders
Typical size
Often several gigabytes; years of chats can reach tens of gigabytes
Made by
Messages
Safe to delete?
Look first Treat it as personal data. Delete from inside Messages.
Comes back?
Only if Messages in iCloud holds them. Otherwise they are gone.

What is in Messages Attachments?

Messages keeps the conversation text in a database in ~/Library/Messages and the media in the Attachments folder. The subfolders have hashed names, so you cannot tell from Finder which chat a file belongs to. That is one reason deleting by hand is a bad idea.

Is it safe to delete Messages attachments?

Not by hand. If you remove files from this folder, the conversation can show a missing or blank attachment. If Messages in iCloud is on, the full copy lives in iCloud and the Mac may re-download it. If it is off, the Mac may hold the only copy, and the loss is permanent.

Messages can remove attachments for you, which keeps the database and the files in step.

How do I clear it safely?

  1. Open Messages and select a conversation.
  2. Choose the conversation's information button and review the photos and files shown, or use Messages' own management options to delete attachments you do not need.
  3. For a whole conversation, delete it from the sidebar. This deletes the messages and attachments on this Mac, and with Messages in iCloud, on your other devices too.
  4. Check Storage in System Settings afterward.
Before deleting anything, save the photos or videos you want to keep to your Photos library or another folder.

How Clean House handles it

Clean House refuses to move anything inside the Library's Messages folder. It protects the Messages data the same way it protects Mail and Keychains, so a scan can show you how large it is without offering it for cleaning.

Questions

Can I delete Messages attachments on a Mac?

Do it from inside Messages, not Finder. Deleting files by hand can remove your only copy and leave broken attachments.

Why are Messages attachments so big?

Photos, videos and files from years of chats are stored here, and video is the biggest part.

Does deleting attachments delete them on my iPhone?

With Messages in iCloud on, deletions sync across devices. Check your settings before deleting.

Sources

  1. Apple Support: Free up storage space on Mac