OneDrive, Dropbox and Google Drive files counted as System Data
- Often, yes. OneDrive, Dropbox and Google Drive now sync through Apple’s File Provider and keep their folders in
~/Library/CloudStorage. Storage settings has no category for them, so the copies you’ve downloaded can end up counted as System Data. - What it costs you to free them: nothing, if you use the provider’s own command (Free up space, Make online-only, streaming). The file stays in the cloud and downloads again when you open it.
- What not to do: delete files from those folders, in Finder or Terminal, to save space. That deletes them from the cloud and your other devices too.
1. Why cloud files land in System Data
Since macOS 12, the big providers have moved to File Provider, Apple’s framework for cloud folders. Google says Drive for desktop keeps streamed files in ~/Library/CloudStorage and that you can’t change that location. Dropbox says its folder moves to ~/Library/CloudStorage when you switch to Dropbox on File Provider. Microsoft says OneDrive’s Files On-Demand is on by default from macOS 12.1, with the OneDrive folder listed under Locations in Finder, like the others.
Each file there is either a placeholder, which takes almost no space, or a downloaded copy. Apple doesn’t say which Storage category a third-party cloud folder belongs to. It does say System Data holds files that fit no other category and that iCloud Drive has a category of its own. A folder inside your Library, owned by another company’s app, has no other home, which is why so many people find their OneDrive or Dropbox downloads in System Data.
There’s a twist. Dropbox says files you opened but didn’t mark Available offline aren’t counted by macOS as occupied space, and may be set back to online-only automatically when the disk runs low. Those behave like purgeable space. Files you pinned stay put and count in full.
2. See how much is downloaded
In Terminal, this shows how much each cloud folder really takes on this Mac. Placeholders count as almost nothing, so the number is the downloaded part:
du -sh ~/Library/CloudStorage/* 2>/dev/null
iCloud Drive lives elsewhere, in ~/Library/Mobile Documents, and has its own bar in Storage settings. In Finder, a cloud icon next to a file means it’s online-only; no icon, or a filled circle, means a copy is on the Mac. Give Terminal Full Disk Access first, or the numbers may come up short.
3. Free the space, provider by provider
| Service | Free a file or folder | Keep it from coming back |
|---|---|---|
| OneDrive | Control-click in Finder › Free up space | Don’t mark big folders Always keep on this device |
| Dropbox | Control-click › Make online-only, or the Manage hard drive space tool in the Dropbox app | Mark only what you need offline as Available offline |
| Google Drive | Use streaming rather than mirroring in Drive for desktop’s settings | Turn off offline access on folders you don’t need without internet |
| iCloud Drive | Control-click › Remove Download | Turn on Optimize Mac Storage in iCloud Drive settings |
Microsoft says making a file online-only doesn’t delete it from OneDrive: you can still see it on the web and in the apps. Google says streamed files use little local space and download when you open them, while mirroring keeps a full copy on the Mac. Free the biggest folders first; the du line above tells you which.
4. What’s safe and what isn’t
- Safe: the provider’s free-up command, switching Google Drive to streaming, and iCloud’s Remove Download. Each leaves the file in the cloud.
- Not safe: deleting. Microsoft says deleting an online-only OneDrive file deletes it from every device and online, with 30 days to restore it from the OneDrive recycle bin. The same goes for Dropbox, Google Drive and iCloud Drive.
- Not safe: dragging out. Google warns that with File Provider, dragging an item out of the Drive folder moves it, and the cloud copy goes to the trash. Hold Option while dragging to copy instead.
- Not safe: the cache folders. Google’s
DriveFScache can hold files waiting to upload, so leave it alone; Dropbox clears its.dropbox.cacheby itself. - Never in Terminal:
rmon anything in~/Library/CloudStorage. The provider treats it as you deleting the files.
5. Leftover cloud folders
Switching versions or providers can leave an old copy behind. Dropbox says that after opting out of File Provider, an old folder marked as an unlinked Dropbox may remain, and tells you to delete it only once the new location is syncing properly. Old Google Drive folders from before streaming and copies left after uninstalling a provider are similar.
Before deleting any of these, open the provider’s website and check your files are there. A folder that isn’t syncing any more may hold the only copy of changes that never uploaded. Once you’re sure, move it to the Trash from Finder, so you have a chance to change your mind.
Questions
Does making a file online-only delete it from OneDrive?
No. Microsoft says the file stays in OneDrive and visible on the web and in the apps; it just stops taking space on this Mac. Deleting it is what removes it everywhere.
Why do OneDrive or Dropbox files download again by themselves?
Opening a file downloads it, and so can apps that read it, such as a photo editor scanning a folder. Folders marked to stay on the device also download every new file added to them.
Can I move ~/Library/CloudStorage to an external drive?
Not by moving the folder. Google says the location can’t be changed. Dropbox has started letting some File Provider users put the Dropbox folder on a compatible external drive from its own settings.
Is it safe to delete the CloudStorage folder on a Mac?
No. It holds your synced cloud folders, and deleting from it deletes from the cloud. Free space with each provider’s online-only command instead.
How SiftMac handles it. SiftMac doesn’t make cloud files online-only; that stays with each provider. Its System Data view counts what macOS can free by itself, which includes downloaded copies macOS is allowed to remove, and its duplicate and screenshot finders skip online-only files, so a scan never downloads them.
Download SiftMac · scanning is free, and so is your first 2 GB of cleaning · See how it works