You open the storage panel and a gray bar called System Data eats 60, 80 or more gigabytes. It is not macOS itself but a junk drawer for everything the Mac cannot classify. Here you will see what is inside, how to reduce it with safe tools and which folders you must not touch.
In short
- “System Data” mixes local Time Machine snapshots, caches, logs, virtual machines and development files.
- You usually recover most with
tmutilfor snapshots, user caches and Xcode folders.- Never delete anything inside
/System,/private/var/vmor/Librarywithsudo rm.
What “System Data” is
Under System Settings › General › Storage, macOS splits the disk into categories: Applications, Documents, Photos, iOS Files, Developer… Whatever fits none goes into System Data (called “Other” in older versions).

It usually contains:
| Content | Where it lives | Can it be reduced? |
|---|---|---|
| Local Time Machine snapshots | System volume (APFS) | Yes, with tmutil |
| App and browser caches | ~/Library/Caches | Yes, with the apps closed |
| Logs | /private/var/log, ~/Library/Logs | Little; macOS rotates them itself |
| Swap and sleep memory | /private/var/vm | No, macOS manages it |
| Virtual machines and container images | Each program’s folders | Yes, from the program itself |
| Xcode and simulator data | ~/Library/Developer | Yes |
| Files of apps in containers | ~/Library/Containers | Only from the app |
An important detail: the panel takes a while to calculate and sometimes shows stale figures. Restart the Mac before drawing conclusions; on startup, macOS frees swap and part of the purgeable space.
See the real space from Terminal
The panel mixes free space with “purgeable” space (which macOS can free when needed). To see what is really there:
df -h /
And to find what weighs most inside your home folder, Library included:
du -sh ~/Library/* 2>/dev/null | sort -h | tail -15
du -sh ~/Library/Caches/* 2>/dev/null | sort -h | tail -15
du only reads, it deletes nothing. If Terminal gives permission errors, grant it Full Disk Access under System Settings › Privacy & Security.
Local Time Machine snapshots
If you use Time Machine, macOS keeps local snapshots on the internal disk so you can recover files even when the backup drive is not connected. It normally deletes them itself when space runs low, but sometimes they pile up and show as System Data.

To list them:
tmutil listlocalsnapshots /
Each line is a snapshot with its date, for example com.apple.TimeMachine.2026-07-20-101530.local. To delete a specific one, use just the date:
sudo tmutil deletelocalsnapshots 2026-07-20-101530
If you prefer macOS to decide, ask it to free an amount of space (in bytes) with the highest urgency, 4:
sudo tmutil thinlocalsnapshots / 20000000000 4
That example tries to free about 20 GB. External drive backups are not touched: only snapshots on the internal disk are removed. There are more tmutil commands in the complete Time Machine guide.
User caches
~/Library/Caches stores data apps can regenerate: thumbnails, temporary downloads, browser cache. Deleting its contents is safe, with caveats:
- Quit the app whose cache you are deleting.
- In the Finder, press
Shift + Cmd + Gand type~/Library/Caches. - Delete the subfolders of the apps that take up the most, not the whole Caches folder.
- Empty the Trash and restart.
The first time you open those apps again they will be a bit slower while rebuilding the cache. That is normal. If a cache grows back right away, the problem is the app, not the Mac.
For browsers, use their own clear browsing data option: that way you do not lose sessions or passwords by accident.
iPhone and iPad backups
Local backups of iOS devices can take tens of gigabytes each. They usually appear under iOS Files, but it is worth checking:
- Under System Settings › General › Storage, click the info button next to iOS Files.
- Select backups of devices you no longer own and delete them.
You can also do it from the Finder: connect the iPhone, select it in the sidebar and click Manage Backups. The backups live in ~/Library/Application Support/MobileSync/Backup; do not move or rename that folder by hand, or the Finder will stop recognizing them.
Xcode and development tools
If you program, this is usually the biggest hole. All of this regenerates itself:
| Folder | What it holds | Effect of deleting |
|---|---|---|
~/Library/Developer/Xcode/DerivedData | Intermediate builds | The next build takes longer |
~/Library/Developer/Xcode/iOS DeviceSupport | Symbols for each iOS version you connected | Copied again when you connect the device |
~/Library/Developer/CoreSimulator/Caches | Simulator caches | Nothing relevant |
~/Library/Developer/Xcode/Archives | Archived builds | You lose the dSYMs needed to read crash reports |
Simulators for versions you no longer have installed are removed like this:
xcrun simctl delete unavailable
Virtual machines and container images behave the same way: a single huge file that does not shrink just by deleting things inside. Clean them with the program’s own maintenance option, never by deleting the disk file by hand.
Optimized storage
Under System Settings › General › Storage, in Recommendations, macOS offers:
- Store in iCloud: keeps Desktop and Documents files and full-size photos in the cloud and downloads them when you open them.
- Optimize Storage: removes movies and shows you have watched in the TV app.
- Empty Trash Automatically: deletes items that have been in the Trash for 30 days.
These options free space in other categories, but they help macOS avoid having to purge snapshots and caches in a hurry.
What not to touch
| Path | Why |
|---|---|
/System | Sealed, protected volume; macOS will not let you and you should not try |
/private/var/vm | Swap and sleep file; macOS manages them |
/Library (root) | Extensions, profiles and system settings |
~/Library/Containers | App data; delete it from the app or by uninstalling |
~/Library/Mobile Documents | This is iCloud Drive; deleting here deletes in the cloud |
Be wary of any recipe with sudo rm -rf on system folders. If you do not know what a file does, leave it.
Common mistakes
- Deleting the whole
~/Library/Cachesfolder with apps open. Some fail until restart. - Trusting the panel’s figure without restarting. It often drops on its own after a restart.
- Turning off Time Machine to remove snapshots. Better use
tmutil thinlocalsnapshots, and you keep your backups. - Using “cleaner” programs that delete things without telling you what. What they do well you can do yourself with
duand the Finder. - Deleting Xcode’s
Archivesof published apps and then being unable to interpret crash reports. - Forgetting to empty the Trash. Until then, space is not freed.



