Open System Settings › General › Storage and the bar often ends with a grey block called System Data, sometimes 50 or 100 GB. Clicking it shows nothing you can delete. That is because System Data is not one thing: it is everything macOS cannot put in another category (Apps, Documents, Photos, iCloud Drive, Mail and so on). Caches, virtual machines, developer tools, local backups and the system’s own files all end up there.
So the way to shrink it is to measure the parts one by one. Each section below gives the command to see a part and the safe way to reduce it. None of them needs sudo rm: deleting system files by hand as root is how a Mac stops booting, and macOS protects most of them anyway.
Start with the big picture of your home folder:
du -sh ~/Library/* 2>/dev/null | sort -h | tail -15
The Terminal needs Full Disk Access (System Settings › Privacy & Security) to read some of these folders; without it du prints “Operation not permitted” and the totals are too small.
Time Machine local snapshots
When Time Machine is on, macOS keeps snapshots of the startup disk on the Mac itself, so you can restore a file while the backup disk is unplugged. They are counted in System Data and can hold many gigabytes after a large change, such as a big download you then deleted.
tmutil listlocalsnapshots /
Each line is a snapshot named with its date, such as com.apple.TimeMachine.2026-11-01-093012.local. macOS deletes them by itself after about 24 hours, or sooner when the disk runs low on space. To delete one now, pass its date:
tmutil deletelocalsnapshots 2026-11-01-093012
A deleted snapshot cannot be restored; the backups on your Time Machine disk are not affected.
Purgeable space
Part of what looks used is purgeable: iCloud files that are also in the cloud, snapshots, and caches macOS can drop on demand. Finder counts it as free (select the disk and choose File › Get Info: “Available” includes it), but df -h / and some apps don’t, which is why two tools show two different free figures. You don’t need to clean purgeable space: macOS frees it when an app asks for room. More, with tmutil thinlocalsnapshots: Purgeable space and Time Machine local snapshots.
Caches and logs
du -sh ~/Library/Caches/* 2>/dev/null | sort -h | tail -10
du -sh ~/Library/Logs /private/var/log 2>/dev/null
Apps rebuild their caches, so deleting the folder of an app that is closed is safe: it gets slower for a moment, then fills the cache again. Quit the app first. System logs in /private/var/log belong to macOS, which rotates them; leave them. Which ~/Library folders are safe to delete, and which hold your data: which ~/Library folders are safe to delete.
Xcode: DerivedData and simulators
If you build apps, this is usually the biggest part of System Data. Build products, simulators and simulator runtimes live in ~/Library/Developer and in system storage that Xcode manages:
du -sh ~/Library/Developer/Xcode/DerivedData ~/Library/Developer/CoreSimulator 2>/dev/null
xcrun simctl runtime list
xcrun simctl delete unavailable
simctl delete unavailable removes simulators whose iOS version is no longer installed. DerivedData can be deleted while Xcode is closed; it is rebuilt on the next build. The details, including old runtimes, archives and device support, are in Xcode using too much space.
Docker Desktop: Docker.raw
Docker Desktop keeps all images, containers and volumes in one disk image:
du -sh ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw
Use du, not Finder, which shows the file’s maximum size. Shrink it from inside Docker with docker system df and the prune commands, never by deleting the file while Docker has data you need. See Docker using too much disk space.
Mail, Messages and app containers
du -sh ~/Library/Mail ~/Library/Messages ~/Library/Containers ~/Library/Group\ Containers 2>/dev/null
Mail downloads attachments of every message it keeps, and sandboxed apps (Messages, Telegram, many App Store apps) store their data in Containers and Group Containers. Large values here are often real data, not junk: shrink them from inside the app (delete old conversations or attachments, or turn off downloads of attachments in Mail), not by deleting folders. For Mail step by step, see Mail on a Mac takes up GBs.
What macOS cleans by itself
Local snapshots, purgeable files, temporary files in /private/var/folders and old logs are all removed by macOS when space runs low or after a restart. A restart alone often makes System Data a few gigabytes smaller. What macOS never cleans for you: DerivedData, simulators, Docker, app caches that apps don’t trim, and big files left in your Downloads.
How CleanMate does it
CleanMate does not delete system files and needs no administrator password. It shows where System Data comes from and cleans the parts that belong to you (all macOS features):
- Overview › Space outside your folders: how many Time Machine local snapshots the Mac keeps and from which date to which (read with
tmutil listlocalsnapshots /), the purgeable space macOS counts as free (shown from 100 MB), and System and apps: the used space that your measured home folder does not explain. Their sizes can’t be measured without administrator rights, so CleanMate does not invent one. - Maintenance › Time Machine local snapshots: each snapshot by date with Delete…, and Delete All…; both ask first, because a deleted snapshot can’t be restored.
- Smart Scan: user caches and logs, plus the developer junk (DerivedData per project, simulator data, old simulator runtimes, Docker), each with its size, and nothing removed until you confirm.
- Space Lens: your home folder by size, biggest first, so you can see which part of
~/Libraryis large. - Wrong icons and blank previews have caches of their own: the fixes for icons, Quick Look and Open With are Maintenance tasks CleanMate runs with a click.
For everything a developer Mac collects, read Free up disk space on a Mac as a developer. To see how this compares with other cleaners, see CleanMate compared. Freeing this space is also the first half of fixing a Mac update that says there is not enough storage.

