What System Data is on a Mac, and how to make it smaller
System Data is the grey bar in Storage settings that macOS won't let you open. It isn't one thing: it's everything that doesn't fit Apple's other categories. Some of it is yours to clear, some of it macOS manages itself, and a little of it is the only copy of something. Here's how to tell them apart.
What macOS counts as System Data
Storage settings sorts your disk into categories such as Applications, Documents, Photos, iCloud Drive and macOS. Whatever doesn't match one of them lands in System Data. On a Mac used for development or AI work it's common to see 50 GB or more. The usual contents:
| What | Where | Safe to remove? |
|---|---|---|
| App caches | ~/Library/Caches | Yes, for third-party apps. Apps rebuild them; the first launch afterwards may be slower. |
| Logs and crash reports | ~/Library/Logs | Yes. Apps start new ones. |
| Developer files | ~/Library/Developer, ~/.npm, ~/.cache and similar | Mostly. Build products and package caches rebuild; Xcode archives and simulator devices may not. |
| App data | ~/Library/Application Support, ~/Library/Containers | Careful. This is where apps keep your settings, libraries and sometimes your only copy of what you made in them. |
| Virtual machine and Docker disks | Inside each app's folder, often under ~/Library/Containers | Only through the app. Deleting the disk file deletes every container, image or VM in it. |
| iPhone and iPad backups | ~/Library/Application Support/MobileSync/Backup | Check first. An old backup may hold photos or messages that exist nowhere else. |
| Time Machine local snapshots | On the system volume, outside your home folder | macOS removes them when it needs the space. You can thin them yourself. |
| Swap and the sleep image | /private/var/vm | No. macOS manages these; they change size as you use the Mac. |
Exactly which category a given folder lands in isn't documented and has changed between macOS versions, so treat this as a map of where to look rather than an exact breakdown.
See what's in it
Storage settings
Open System Settings, then General, then Storage. The bar at the top shows each category, and the list below has an information button for most of them. System Data has none: there's no list of what's inside. The Documents category is still worth a look, because its Large Files, Downloads and File Browser views show some of the same folders from a different angle.
The figure can take a while to settle after you free space, and it sometimes includes purgeable space macOS would release on its own. Don't judge a cleanup by the bar in the first few minutes.
Your Library folder
Most of the System Data you can do anything about is in the Library folder inside your home folder. Finder hides it; to open it, choose Go, then Go to Folder, and type ~/Library. Or hold Option while the Go menu is open and choose Library.
To see which folders in it are biggest, run this in Terminal (the largest are listed last):
du -sh ~/Library/* 2>/dev/null | sort -h
Then go one level deeper into whichever is largest, for example:
du -sh ~/Library/Application\ Support/* 2>/dev/null | sort -h | tail -15
du -sh ~/Library/Containers/* 2>/dev/null | sort -h | tail -15
Some folders are private to macOS, so du skips them unless Terminal has Full Disk Access (in Privacy & Security). The 2>/dev/null hides those "Operation not permitted" lines; the totals are then a little low, never too high.
Developers should also check the hidden folders at the top of the home folder, where package managers and AI tools keep their caches:
du -sh ~/.[!.]* 2>/dev/null | sort -h | tail -15
Time Machine local snapshots
If Time Machine is on, macOS keeps snapshots on your internal disk so you can restore files while the backup disk is away. List them with:
tmutil listlocalsnapshots /
macOS keeps them for about 24 hours and deletes them sooner when space runs low, so they rarely need attention. If you need space back now, you can ask macOS to thin them, here by up to 20 GB at the highest urgency:
sudo tmutil thinlocalsnapshots / 20000000000 4
Or delete the ones from a particular date and time, copied from the list above:
sudo tmutil deletelocalsnapshots 2026-10-20-101500
A deleted snapshot can't be restored from. If your backup disk hasn't been connected for a while, the local snapshots may be the only Time Machine history of recent changes.
What's safe to clear
Caches and logs
Folders in ~/Library/Caches belonging to third-party apps can go, ideally with the app quit. Leave the com.apple.* folders alone: macOS rebuilds them too, but some hold state system services expect, and clearing them rarely frees much. Everything in ~/Library/Logs can go; you lose old crash reports, nothing else.
Developer and AI tool files
These are often the largest part. Xcode's DerivedData, simulator caches, package-manager caches (npm, pnpm, pip, uv, Cargo, Homebrew) and the caches and old versions coding agents leave behind all rebuild themselves. Local AI models in ~/.ollama or ~/.cache/huggingface can be downloaded again, but at 5 to 40 GB each that takes a while. Our guides to Xcode's files, node_modules, local models and coding agents go through each.
Docker and virtual machines
Docker Desktop keeps every image, container and volume in a single disk image under ~/Library/Containers/com.docker.docker. Don't delete that file to free space; you'd lose everything in it, volumes included. Instead see what's using space and prune what you don't need:
docker system df
docker system prune
docker system prune removes stopped containers, unused networks, dangling images and unused build cache; it asks before it starts and leaves volumes alone unless you add --volumes. The disk image may not shrink straight away. Virtual machines in UTM, Parallels or VMware are best removed from inside those apps. Our Docker guide goes through each prune command.
iPhone and iPad backups
Connect the device, select it in Finder's sidebar and, on the General tab, click Manage Backups. The list there shows the backups of every device on this Mac, with their dates. The files themselves are in ~/Library/Application Support/MobileSync/Backup, which Terminal can read only with Full Disk Access. Delete backups of devices you no longer own once you're sure nothing on them is missing elsewhere.
Leftovers from deleted apps
Dragging an app to the Trash leaves its folders in Application Support, Containers and Preferences. If you're sure the app is gone for good, and you don't want anything you made in it, those folders can go too. Check the name first: a folder named after a company may serve several of its apps.
What to leave alone
- Anything outside your home folder, such as
/System,/private/varand/Library. macOS manages these, and the system volume is sealed against changes anyway. - Mail, Messages, Photos and Music libraries. Remove things from inside those apps, not in Finder.
- Keychains and anything holding credentials.
- Whole folders in Application Support or Containers for apps you still use. These are data, not caches.
Commands like rm -rf skip the Trash. While you're clearing out folders you don't know well, drag them to the Trash in Finder instead, and empty it once you've used the Mac for a day or two without problems.
How ElfClean does it
ElfClean measures your home folder and the folders you add, not the whole disk, so it doesn't see or remove Time Machine snapshots, swap or anything else macOS owns. That's deliberate: the part of System Data you can safely clear lives in your home folder, and that's where ElfClean looks.
Its storage map shows where space goes in your home folder. A scan finds app caches and logs (leaving Apple's own system caches alone), leftovers from apps you've deleted, Xcode and package-manager caches, AI tools' caches and old versions, and Ollama and Hugging Face models, each explained in plain language and labelled Safe, Review or Caution. Running apps, credentials, cloud drives and anything you add to Never Touch are left alone. Everything goes to the Trash, and History can put it back.
More guides
- How to delete old node_modules folders on a Mac safely
- Where Ollama and Hugging Face store models on a Mac, and how to remove them
- What Claude Code, Codex and Cursor leave on your Mac
- How to clear Xcode DerivedData, simulators and device support
- How to find large files and duplicates on a Mac
- How to free up Docker disk space on a Mac
- Clear pip, uv, Homebrew, Cargo and other caches on a Mac
- Mac cleaners for developers compared: CleanMyMac alternatives