CleanMate

All guides · macOS · Updated

iCloud Drive taking up space on a Mac: Remove Download, Optimize Mac Storage and brctl evict

Why iCloud Drive files still fill your Mac after they are uploaded, how to free their space without deleting them from iCloud (Remove Download in Finder, Optimize Mac Storage, brctl evict), and which files must stay downloaded.

Download for macOS — free and open source

CleanMate Large & Old Files on a Mac, listing large files sorted by size with filtersCleanMate Large & Old Files on a Mac, listing large files sorted by size with filters

iCloud Drive keeps a full copy on your Mac of every file you opened or added, as well as the copy in iCloud. Those copies count as used space. Deleting the file is not the answer: it deletes it from iCloud and from your other devices too. What you want is to remove only the download, the copy on this Mac.

Remove Download in Finder

  1. Open the file’s folder in iCloud Drive in Finder (also Desktop and Documents when they sync to iCloud).
  2. Control-click the file or folder and choose Remove Download.

The file stays in iCloud Drive and in Finder, with a cloud icon, and downloads again when you open it. Before you do it, check the file is fully uploaded: no progress circle or cloud with a line through it next to its name. A file still uploading only exists on this Mac.

Optimize Mac Storage

System Settings › your name › iCloud › iCloud Drive (on older macOS, Apple ID › iCloud), turn on Optimize Mac Storage. macOS then removes downloads of files you haven’t opened in a while when the disk runs low. It decides when and what; it does not free space right away. Space macOS can free this way shows as purgeable: see Purgeable space and Time Machine local snapshots.

brctl evict in Terminal

brctl evict ~/Library/Mobile\ Documents/com~apple~CloudDocs/Movies/trip.mov

~/Library/Mobile Documents/com~apple~CloudDocs is iCloud Drive’s folder. brctl evict removes the local copy of one file, like Remove Download. Find the big ones first:

find ~/Library/Mobile\ Documents/com~apple~CloudDocs -type f -size +500M -exec du -h {} + 2>/dev/null | sort -h

Terminal needs Full Disk Access to read that folder.

Files to keep downloaded

How CleanMate does it

In CleanMate 1.12 (all macOS features), Large & Old Files also lists the downloaded files of iCloud Drive when CleanMate has Full Disk Access, with an iCloud label under the name (also files of Desktop and Documents synced to iCloud). Files kept only in iCloud take no space and are not listed, and the scan never downloads anything.

Without Full Disk Access, iCloud Drive is not read at all. More ways to find big files: Find large files; everything else: Free up disk space on a Mac. Download CleanMate.

FAQ

Does Remove Download delete the file from iCloud? No. Only the copy on this Mac goes; the file stays in iCloud Drive and on your other devices.

Why does my Mac show the space as still used? Finder updates free space after a moment. If you used Optimize Mac Storage, macOS frees space only when it needs it.

Can I see which iCloud files are downloaded? In Finder, files without a cloud icon are downloaded. In Terminal, the find command above lists large ones.

Looking for a free DaisyDisk alternative? See how Space Lens compares, feature by feature.

Skip the commands

Open source — star it on GitHub: CleanMate for macOS

How CleanMate decides what is safe to remove →