Is it safe to delete ~/Library/Mobile Documents on Mac?
Do not delete~/Library/Mobile Documents
Mobile Documents is iCloud Drive on your Mac. Deleting from it removes files from every device. Free up space with Optimise Mac Storage instead.
Verdict: Do not delete. ~/Library/Mobile Documents is where your Mac keeps iCloud Drive, so deleting files from it deletes them from iCloud Drive and from every device signed in to your Apple Account. To get space back on this Mac without losing anything, let macOS keep files in iCloud only, with Optimise Mac Storage or Remove Download.
What lives in ~/Library/Mobile Documents
iCloud Drive in the Finder sidebar is a friendlier view of this folder. Inside it you will find:
com~apple~CloudDocs, the top level of iCloud Drive: the files and folders you see under iCloud Drive in Finder. If you turned on Desktop and Documents Folders in iCloud, those files are part of iCloud Drive as well.- A folder for each app that keeps documents or settings in iCloud, with names starting
com~apple~oriCloud~followed by an app's identifier. Pages, Numbers, Keynote and many third-party apps sync through these.
Not every file is fully on the Mac. A file can be downloaded, or stored only in iCloud with a small placeholder left behind, which Finder marks with a cloud icon.
What happens if you delete it
iCloud Drive is a synced folder, not a backup. When a file goes from here, iCloud removes it everywhere: your iPhone, iPad, other Macs and iCloud.com. Removing the folder itself, or one of the app folders inside it, does the same to everything it holds, and can leave apps that sync through iCloud without their documents.
The safety net is short. Apple's Delete files and folders on Mac notes that items you move to the Bin from iCloud Drive are emptied automatically after 30 days, whatever your Finder setting. Nothing here rebuilds from a cache: once that window closes, only a backup such as Time Machine can bring a file back.
Moving files out is not a way round it either. Apple's Work with folders and files in iCloud Drive explains that items you move out of iCloud Drive are copied to your Mac and removed from iCloud Drive on all your devices. That frees nothing on this Mac.
How to check its size safely
The simplest view is Storage settings. Choose Apple menu > System Settings > General > Storage and look at the iCloud Drive row, which covers the files iCloud Drive keeps on this Mac.
From Terminal:
du -sh ~/Library/"Mobile Documents"
This only reads. It counts the space files actually take on this disk, so files stored only in iCloud add almost nothing. macOS keeps parts of your Library private: if Terminal prints "Operation not permitted", either use Storage settings or give Terminal access in System Settings > Privacy & Security > Full Disk Access, and switch it off again afterwards.
In Finder, click iCloud Drive in the sidebar, choose View > as List, then View > Show View Options and tick Calculate all sizes. Finder shows each item's full size even when it lives only in iCloud, so use the cloud icon to tell what is really downloaded.
The safest way to get the space back
- Turn on Optimise Mac Storage. On macOS 15 Sequoia, choose Apple menu > System Settings > [your name] > iCloud > Drive and switch on Optimise Mac Storage. As Apple's Store files in iCloud Drive on Mac puts it, your Mac then stores documents in iCloud when space is needed, and keeps everything local when it isn't.
- Free specific large items now. In Finder, Control-click a file or folder in iCloud Drive and choose Remove Download. It stays in iCloud Drive on every device; the Mac keeps a placeholder and downloads it again when you open it.
- Protect files you need offline. Control-click them and choose Keep Downloaded, so Optimise Mac Storage leaves them alone.
- Delete only what you no longer want anywhere. Move it to the Bin in Finder, knowing it disappears from your other devices too, and check the Bin before its 30 days run out.
Warning: never use rm on anything in this folder. It skips the Bin, and the deletion still syncs to iCloud and every device.
What never to touch
- The
Mobile Documentsfolder itself, orcom~apple~CloudDocsinside it. - The app folders, however cryptic their names look. They hold documents and settings apps sync between devices.
- Placeholder files that look tiny. They stand for real files in iCloud, and deleting one deletes the file everywhere.
- Anything here while you are short of time to check. A mistake syncs to every device.
If iCloud Drive is only part of the picture, the complete guide to freeing up space on a Mac covers the bigger wins. Your iPhone backups and Photos library are the other personal stores worth checking, and the Bin is where deleted iCloud files wait.
How Headroom helps
Headroom refuses to change anything in ~/Library/Mobile Documents or ~/Library/CloudStorage, whatever a scan finds, and it checks again right before every change. Its free Space map shows how much iCloud Drive takes on this Mac, labelled "iCloud Drive files kept on this Mac", so you can judge whether Optimise Mac Storage is worth turning on. For space that is safe to clear, such as caches and old build folders, use the cleaner. Download Headroom: the scan is free, and the $19 one-time licence clears what you tick on up to three Macs.
Questions
What is the Mobile Documents folder on a Mac?
It is where macOS keeps iCloud Drive on your Mac, including the folders apps use to sync their documents through iCloud. iCloud Drive in the Finder sidebar shows the same files.
Will deleting Mobile Documents free up space without deleting from iCloud?
No. Files deleted there are removed from iCloud Drive on all your devices. To free space on the Mac only, use Remove Download on a file or turn on Optimise Mac Storage.
Why is Mobile Documents so big?
Every iCloud Drive file that is downloaded takes its full size on the Mac, including Desktop and Documents if you sync those. Optimise Mac Storage lets macOS keep files in iCloud only when space runs low.
Can I get back a file I deleted from iCloud Drive?
Check the Bin first. Apple says items moved to the Bin from iCloud Drive are emptied automatically after 30 days, whatever your Finder setting.