Sync apps use disk space in two ways. The first is the files you downloaded: every file kept “available offline” is a full copy on this computer. The second is a hidden cache: Google Drive keeps a content cache of files you opened, Dropbox keeps older copies of changed and deleted files in .dropbox.cache, and all of them write logs. The cache does not show in Finder and can reach 5–30 GB.
Never free space by deleting files in the synced folder: the deletion syncs, and the file goes from the cloud and your other devices too.
Google Drive for desktop
- Stream instead of mirror: in Settings › Preferences › Google Drive, choose Stream files. Files stay in the cloud and download when opened. Mirror files keeps a full copy of My Drive on the Mac.
- Online-only files: in Finder, Control-click a file or folder in Google Drive and choose Offline access › Online only.
- Cache: the content cache is in
~/Library/Application Support/Google/DriveFS/<account>/content_cache. Its location can be changed under Preferences › settings (gear) › Local cached files directory. Quit Google Drive before touching it, and only when every file is uploaded: a file not uploaded yet may exist only in the cache.
Dropbox
- Online-only: in Finder, Control-click a file or folder in Dropbox and choose Make online-only. Set the default for new files in Preferences › Sync.
- Selective sync: Preferences › Sync › Selective sync removes whole folders from this computer but keeps them in Dropbox.
- Cache:
.dropbox.cachesits at the top of your Dropbox folder. Dropbox empties it on its own after a few days; you can empty it yourself with Dropbox quit.
OneDrive
- Files On-Demand: on a Mac it is always on. Control-click a file or folder and choose Free up space: the file stays in OneDrive, only the local copy goes. Always keep on this device does the opposite.
- Cache and logs: OneDrive keeps them in its app container under
~/Library/Containers, which Finder hides. Reset OneDrive (Settings › Account › Unlink this Mac and sign in again) when it is badly out of sync rather than deleting its folders.
On Ubuntu
Google and Microsoft have no official desktop client for Linux. Settings › Online Accounts with a Google account shows Google Drive in Files without copying it to the disk. Third-party clients (rclone, Insync) have their own cache settings.
- Dropbox for Linux syncs every file it shows; there is no online-only. Use Preferences › Sync › Selective Sync, or in Terminal:
dropbox exclude add ~/Dropbox/Videos
The cache is .dropbox.cache at the top of your Dropbox folder, logs in ~/.dropbox/logs.
- Nextcloud / ownCloud keep caches in
~/.cache/Nextcloud(orownCloud) and logs in~/.local/share. Virtual files, where offered, keep files online-only. - MEGAsync writes logs in its data folder.
What not to delete
- The synced folder itself, or files in it: deleting there deletes everywhere.
- Files not uploaded yet: wait until the app shows everything up to date.
- The app’s settings and database (Dropbox
info.json,instance*folders; Google Drive account folders other than the cache): they hold your sign-in and sync state.
How CleanMate does it
CleanMate for macOS (all macOS features) lists in Smart Scan › Apps:
- Google Drive cache: the content cache and logs, only the parts unchanged for 7 days, so files waiting to upload stay.
- Dropbox cache: Dropbox’s logs and the
.dropbox.cacheof each Dropbox folder. - OneDrive cache & logs: only with Full Disk Access.
CleanMate for Ubuntu (all Ubuntu features) lists, in Smart Scan › User & App Junk, the Dropbox logs and .dropbox.cache (files changed in the last 7 days stay), the Nextcloud / ownCloud logs and caches, and MEGAsync’s logs.
On both, none of these is ticked, they are deleted (the apps download again what they need), each is skipped while its app runs, and your synced files, settings and sign-ins are never touched. CleanMate does not make files online-only; use the app’s own menu above. On a Mac, iCloud Drive downloads are handled in Large & Old Files: iCloud Drive taking up space.
Other caches: Clear the cache on a Mac, on Ubuntu. Step by step: Free up disk space on a Mac, on Ubuntu. Download CleanMate.
FAQ
Does online-only delete the file from the cloud? No. Only the copy on this computer goes; the file stays in the cloud and on your other devices.
Is it safe to delete .dropbox.cache? Yes, with Dropbox quit. It holds older copies Dropbox no longer needs.
Why does Google Drive use space in streaming mode? Files you opened stay in the content cache so they open fast next time, and files marked offline are kept in full.

