What is ~/Library/Mobile Documents, and can I delete it?

~/Library/Mobile Documents is where your Mac stores iCloud Drive and app files from iCloud, and deleting files there deletes them from iCloud on all your devices.

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

This folder is the local copy of your iCloud Drive. It is a synced folder, not a cache. Deleting files here sends the deletion to iCloud and your other devices. To free space, use Remove Download in Finder, which keeps the file in iCloud and removes only the copy on this Mac. Verdict: Keep.

Path
~/Library/Mobile Documents (iCloud Drive appears as com~apple~CloudDocs)
What it is
The Mac copy of iCloud Drive and of data that apps store in iCloud
Typical size
From small to hundreds of gigabytes; depends on what is kept downloaded
Made by
iCloud Drive and apps that sync with iCloud
Safe to delete?
Keep Deleting here deletes from iCloud. Use Remove Download.
Comes back?
Files removed with Remove Download return when opened. Deleted files do not.

What is in Mobile Documents?

The folder has one subfolder per iCloud-enabled app, with names like com~apple~Pages, plus com~apple~CloudDocs for iCloud Drive. Files appear fully downloaded, or as placeholders that download when opened. The folder you see in Finder under iCloud Drive is the same data.

Is it safe to delete files from Mobile Documents?

Deleting a file here is deleting it from iCloud. The Mac syncs the change, and the file disappears on your iPhone, iPad and iCloud.com too, apart from any recoverable period iCloud allows. That is different from a cache that rebuilds.

If you only want the space back on this Mac, you do not need to delete anything.

How do I free space without losing files?

  1. Open Finder and select iCloud Drive in the sidebar.
  2. Right-click a folder or file and choose Remove Download.
  3. The file stays in iCloud and shows a cloud icon. It downloads again when you open it.
  4. To let macOS do this for you, open System Settings, choose your name, then iCloud, then Drive, and turn on Optimize Mac Storage.
Make sure files have finished uploading before you remove the local copy. A cloud icon means it is safe in iCloud.

How Clean House handles it

Clean House reads iCloud Drive files without downloading them, so scanning does not pull data onto your Mac. It marks the folder Keep, explains that deleting here deletes from iCloud, and points to Remove Download or Optimize Mac Storage. It will not move files in Mobile Documents.

Questions

Can I delete Mobile Documents?

No. Deleting files there deletes them from iCloud on every device. Use Remove Download instead.

What does Remove Download do?

It removes the copy on this Mac and keeps the file in iCloud. It downloads again when you open it.

Why is Mobile Documents so big?

Files you opened or marked to keep downloaded stay on the Mac. Optimize Mac Storage can shrink it.

Sources

  1. Apple Support: Free up storage space on Mac