Messages Taking Up Space on Your Mac: Can You Delete ~/Library/Messages?

No, this is your dataDiskmack safety tier: Your files
~/Library/Messages

No, do not delete this folder. ~/Library/Messages holds your entire iMessage and SMS history on this Mac, plus every photo, video, and file anyone has ever sent you. Unless Messages in iCloud is turned on, this folder is the only copy of that history anywhere. The right way to shrink it is from inside the Messages app, not by trashing files by hand.

What it is

~/Library/Messages is where the Messages app keeps everything. The core of it is chat.db, a SQLite database containing the text of every message you have sent or received on this Mac, along with a couple of small companion files (chat.db-wal and chat.db-shm) that the database uses while it runs. Next to it sits the Attachments folder, and that is almost always where the real bulk lives: every photo, video, screenshot, voice memo, sticker, GIF, and PDF from every conversation, filed away in hashed subfolders.

It grows because attachments never expire on their own. By default, Messages keeps everything forever, so a Mac that has been signed into iMessage for a few years quietly accumulates the full media history of every group chat you are in. On a lightly used Mac the folder might be a few hundred megabytes. On a Mac with years of history and photo-heavy group chats, it commonly reaches several gigabytes and can pass 10 GB or more. People land on this page because Storage settings shows Messages near the top of the list and it feels like it should be deletable. It is not junk, though. It is your conversation history.

Is it safe to delete?

Every byte in here is a conversation you had or a file someone sent you. If you delete chat.db, Messages behaves like a fresh install: the app recreates an empty database and your local history is gone. If you delete the Attachments folder, the messages survive but every photo and file in them shows up as missing. Whether any of it comes back depends on one setting: with Messages in iCloud turned on, your history lives on Apple's servers and can sync back down. With it off, ~/Library/Messages is the only copy in existence, and deleting it is permanent.

So the answer is not "never free this space," it is "never free it by deleting files in Finder." Prune from inside the Messages app instead: remove conversations you genuinely do not need, delete the large attachments, or set messages to expire after a year. If you want an archive first, copy the whole ~/Library/Messages folder to an external drive before you prune anything. Diskmack identifies this folder automatically and classifies it as your data rather than junk, so it never gets swept up in a cleanup.

How to check its size

In Finder: In Finder, choose Go > Go to Folder (Shift-Command-G), paste ~/Library/Messages and press Return. Click the Messages folder once and press Command-I to see its total size. Open the Attachments subfolder and repeat; it usually accounts for nearly all of the space.

In Terminal:

du -sh ~/Library/Messages ~/Library/Messages/Attachments

The second path shows how much of the total is attachments alone; macOS protects this folder, so if du says Operation not permitted, grant Terminal Full Disk Access in System Settings > Privacy & Security.

How to clean it

  1. Optional but recommended: copy the entire ~/Library/Messages folder to an external drive first. That gives you a full archive you can restore later by copying it back.
  2. Open System Settings, click General, then Storage, and click the info button next to Messages. You get a list of attachments sorted by size. Select the big videos and files you no longer need and click Delete.
  3. For a whole conversation you are done with, open Messages, right-click the conversation in the sidebar, and choose Delete Conversation. This removes its text and all of its attachments.
  4. To keep individual attachments out of a conversation without deleting the thread, click the conversation, click the contact name at the top to open the details pane, find the item under Photos or Documents, then right-click it and choose Delete.
  5. To stop the folder from growing forever, open Messages, choose Messages > Settings > General, and set Keep Messages to 30 Days or One Year. macOS warns you, then permanently deletes anything older, attachments included, and keeps doing so going forward.

If Messages in iCloud is on, deletions sync everywhere: a conversation you delete on the Mac disappears from your iPhone and iPad too. If it is off, whatever you delete here is simply gone.

Will it come back?

Yes, steadily. The folder grows every time someone sends you a message, and photo and video attachments do the heavy lifting, so a busy group chat can add gigabytes over a year. Nothing regenerates after a cleanup; deleted conversations do not quietly return, unless Messages in iCloud syncs history back down from another device. The only way to keep the size bounded without recurring manual work is the Keep Messages setting: at 30 Days or One Year, Messages trims old conversations and their attachments automatically, and the folder settles at whatever your recent history occupies.

Common questions

Can I just delete the Attachments folder and keep my messages?

Don't. The chat.db database stores references to those files, so the conversations remain but every photo, video, and document in them turns into a missing-attachment placeholder. If Messages in iCloud is off, those files have no other copy. Use the Storage pane's Messages list or the app itself to remove specific attachments cleanly.

What is chat.db and what happens if I delete it?

It is the SQLite database holding the text of your entire message history on this Mac. Delete it and Messages starts over with an empty database. With Messages in iCloud on, history can sync back from Apple's servers. With it off, it is gone for good. There is no scenario where deleting it by hand is the right cleanup move.

Does turning on Messages in iCloud free up space on my Mac?

Not by much on its own. It stores your full history in iCloud, which means the local folder can be rebuilt if this Mac is lost or wiped, but the Mac still keeps a local copy for fast access. Its real value here is safety: once it is on, pruning old conversations no longer means destroying the only copy. Note that it also syncs deletions to your other devices.

Will setting Keep Messages to 30 days delete things immediately?

Yes. As soon as you confirm the change, Messages permanently deletes every message and attachment older than the window you picked, on this Mac and, if Messages in iCloud is on, on your other devices too. Export or archive anything sentimental before flipping that switch.

Related folders