Key points
- System Settings > General > Storage groups usage into categories, and System Data can take a minute to calculate.
- du -xhd 1 ~/Library | sort -hr | head -20 ranks your user Library folders by real disk usage.
- Caches, snapshots, device backups and build artifacts are regenerable or duplicated elsewhere; Application Support, Containers and Keychains usually are not.
- Developer Macs often carry tens of gigabytes in Xcode, Docker and AI model caches that Finder never surfaces.
- Measure first, delete in small batches, and treat the Trash as your undo button.
A full Mac is rarely full of one big thing. The space goes to a small set of predictable locations: photos and Messages attachments, caches, iOS device backups, APFS local snapshots, and developer artifacts such as Xcode, Docker and local AI models. System Settings > General > Storage gives you category totals, and du in Terminal tells you which folders are responsible.
Start with the built-in Storage view
Open System Settings > General > Storage. macOS groups usage into Applications, Documents, System Data, Photos, Music, Mail, Messages and a few other categories, with a colored bar at the top. Hover over a segment to see its size, and use the info button for suggestions.
Two limits matter. The view reports categories, not paths — knowing that System Data is 60 GB does not tell you why. And categories can lag after a large deletion, sometimes by several minutes. Treat the view as a map, not a diagnosis. Never try to delete System Data as an item: it has no single location and no folder of that name.
Measure by folder with du
du reports disk usage per directory. The useful macOS flags are -x (stay on one filesystem), -d (depth) and -h (human-readable sizes):
du -xhd 1 ~/Library | sort -hr | head -20
du -xhd 1 ~/Library/Developer | sort -hr | head -20
du -xhd 1 ~ | sort -hr | head -20
sort -hr orders by size, largest first, and head -20 keeps the output readable. Start at ~/Library, then repeat inside whichever folder is largest. If Terminal returns nothing for a protected location, grant it Full Disk Access in System Settings > Privacy & Security > Full Disk Access.
The usual large contributors
Photos and Messages attachments
The Photos library at ~/Pictures/Photos Library.photoslibrary is often the largest item on a personal Mac. Messages attachments live in ~/Library/Messages/Attachments and grow with every received photo or video. Do not delete files inside the Photos library in Finder. If space is tight, enable Optimize Mac Storage so full-resolution originals stay in iCloud, or move an old library to an external drive.
App and system caches
~/Library/Caches holds browser caches, streaming buffers, thumbnails and updater downloads; /Library/Caches holds system-wide equivalents. Both can reach several gigabytes and both are rebuilt on demand. Quit the app before removing its cache folder, and remove the contents rather than the cache directory itself.
iOS and iPad backups
Each device backup is a folder under ~/Library/Application Support/MobileSync/Backup. Older backups of phones you no longer own can hold 20 GB or more:
du -sh ~/Library/Application\ Support/MobileSync/Backup/*
Delete only backups you do not need, or manage them in Finder under the device’s General tab. A backup is a copy, but it may be your only copy.
Docker and virtual machines
Docker Desktop keeps a disk image at ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw that grows and rarely shrinks. docker system df shows what it contains. docker system prune -af reclaims unused images, containers and build cache, but it removes all unused images, so read the prompt. UTM, Parallels and VMware bundles are complete virtual machines, not caches: deleting one deletes that machine.
Xcode and developer artifacts
On a development Mac, ~/Library/Developer/Xcode/DerivedData, simulator runtimes, device support files, node_modules and package manager caches routinely add tens of gigabytes. These are build output and can be regenerated. See Xcode DerivedData for the exact folders and safe deletion commands.
Local AI models
Ollama stores models under ~/.ollama/models, and Hugging Face downloads land in ~/.cache/huggingface. A single model can be several gigabytes. Models can be downloaded again, at the cost of bandwidth; where Ollama stores models explains the layout.
APFS local snapshots
Time Machine keeps local snapshots on the startup disk when it cannot reach its backup destination. They never appear in Finder and can occupy tens of gigabytes. List them with tmutil listlocalsnapshots /. They are recovery points rather than duplicate data, so remove only the ones you do not need.
Regenerable cache or real data?
Before deleting anything, ask three questions. Can the app rebuild this on its own? Caches, thumbnails and build output can; user documents cannot. Is there another copy? An iCloud photo or a device backup qualifies; the only copy of a project does not. Would losing it change your work or accounts? Preferences, Containers and Keychains usually would.
In practice, ~/Library/Caches, logs and developer build directories are regenerable. ~/Library/Application Support, ~/Library/Containers, ~/Library/Group Containers and ~/Library/Keychains are real data. The full breakdown is in Mac System Data.
How Maclean handles a full disk
Maclean scans the known contributors rather than one folder and labels each item with what happens if you remove it: safe to regenerate, needs a re-download, or contains user data that requires confirmation. Large files move to the Trash and can be restored from history, and protected Apple applications are excluded before any delete option appears. The app also lists APFS snapshots, keeps a history of space usage with growth trends and a forecast, and explains scan results locally without uploading file names.
The CLI is free and open source under Apache-2.0, runs on macOS and Windows, covers 60+ developer cache categories, and supports dry-run, JSON output and scheduled runs:
maclean check-disk --breakdown
maclean scan --deep
maclean clean --tab dev-cache --dry-run
If you already know what is large and want to act on it, continue with how to free up space on a Mac.
Bottom line
A full disk is usually a few large, explainable folders rather than one mystery. Check the Storage view for categories, use du to find the folders that actually hold the space, and delete only what can be rebuilt or exists elsewhere. Anything that might be the only copy should stay.