“System Data” taking up so much space on my Mac
Storage settings show tens of gigabytes of System Data and no way to open it. What is in it, and what you can safely clear.
The short answer
System Data is everything the storage settings cannot sort into a category of its own: caches, logs, temporary files, virtual machine disks, developer tools' leftovers and macOS's own working files. A lot of it can be cleared safely; the trick is knowing which parts.
Where you see it
In System Settings → General → Storage, the bar splits your disk into Applications, Documents, Photos and so on. System Data is the rest, and it has no button to look inside. Tens of gigabytes is common, and on a Mac used for development a hundred or more is not unusual.
What is in it
- Caches and logs that apps keep to work faster, and old logs.
- Virtual machine disks, such as Docker Desktop's, which grow as images pile up and rarely shrink by themselves.
- Developer leftovers: Xcode's build files and simulators, and the caches of npm, Homebrew, Go, Gradle and other tools.
- Local Time Machine snapshots, kept while the backup disk is away. macOS deletes them by itself when it needs the space.
- macOS's working files, such as swap files when memory runs short; a restart clears those.
What you can clear safely
- Restart the Mac. It clears swap and temporary files, and the storage settings count again afterwards.
- Docker:
docker system pruneremoves stopped containers, unused networks, dangling images and the build cache; add-ato remove every image no container uses, too. They download again when needed. - Xcode: its build leftovers (DerivedData) are safe to delete, and simulators for iOS versions you no longer test on can go.
- App caches in your Library's Caches folder: apps build them again. Quit the app first.
MyMacFriend's Space tab finds 27 kinds of this clutter, Docker, Xcode and other developer caches, app caches and logs, iPhone backups and old installers among them, says for each whether it is safe to clear or worth a look first, and clears it for you.