What Is System Data on a Mac? Five Things Hiding Inside It

It isn’t one thing you can empty. It’s a remainder, and on a developer’s Mac most of it has a name.

Dữ liệu hệ thống trên MacBook là gì, và vì sao nó phình to đến vậy

A Storage settings bar where System Data is the largest grey slice, bigger than Applications, Documents and Photos
The slice with the vaguest name is usually the biggest. Example data, not a real Mac.

You open System Settings › General › Storage to see what’s eating the disk. Applications makes sense. Documents makes sense. Then there’s a grey slice called System Data, it’s the biggest one on the bar, and unlike the others it has no Info button. You can’t click into it. You can only stare at it.

Most advice at this point is a list of folders to delete. That gets the idea backwards. System Data isn’t a folder. Apple’s own definition is that it contains “files that don’t fall into the categories listed here”: log files, caches, VM files, temporary files, fonts, app support files and plug-ins. Then comes the sentence that matters: you can’t manage its contents, macOS does, and the size “varies depending on the current state of your Mac.”

So the useful question isn’t “how do I delete System Data?” It’s “what are the parts, and which of them are mine?” On a Mac used for development, five parts do most of the growing. Here they are, from the one that leaves on its own to the one you should handle with care.

1. Time Machine’s local snapshots

Difficulty1 of 5

A Terminal window running tmutil listlocalsnapshots, which lists three hourly snapshots of the startup disk with their dates
Local snapshots, one per hour, kept for a day. Example output.

If Time Machine backs up automatically, it also keeps snapshots on your startup disk, so you can restore a file when the backup drive isn’t plugged in. Apple’s description is precise: about one snapshot every hour, each kept for 24 hours, plus one of your last successful backup until the space is needed.

Two details explain most of the confusion. Your Mac counts the space snapshots use as available, so they don’t block downloads or installs. And Time Machine deletes them as they age or as space is needed. That’s why System Data can look huge in the afternoon and smaller the next morning without you doing anything.

To see whether you have any right now. This only reads:

tmutil listlocalsnapshots /

If the list is empty, snapshots aren’t your problem, and you can move on. If it isn’t, Apple’s supported way to clear them early is to switch Time Machine to manual backups for a few minutes, then switch it back.

A snapshot that leaves on its own needs patience, not a command.

2. Caches of apps you already deleted

Difficulty2 of 5

The ~/Library/Caches folder sorted by size, with folders for apps still installed and two folders named after apps that were deleted months ago
Caches of apps you still use come back. The ones named after deleted apps never get read again. Example data, not a real Mac.

Every app is allowed to keep a cache in ~/Library/Caches, and Storage settings has no category for them, so they count as System Data. Dragging an app to the Trash removes the app, not its cache. Over a few years of trying tools, that adds up.

See what’s there, biggest last:

du -hd1 ~/Library/Caches 2>/dev/null | sort -h | tail -15

Look for folder names that belong to apps you no longer have. Those are the safe, worthwhile ones: nothing will read them again. Caches of apps you still use are allowed to be big. Clear one and the app quietly builds it again, because its cause is alive. If you do clear a cache, quit the app first and move the folder to the Trash rather than deleting it outright.

Clear the caches nobody reads. Leave the ones that will just grow back.

3. Xcode’s build folders

Difficulty3 of 5

The DerivedData folder listing one build folder per project, several of them for projects that no longer exist on the Mac
One DerivedData folder per project Xcode has ever built, including ones you deleted. Example data, not a real Mac.

If Xcode is installed, ~/Library/Developer is often the single biggest thing behind System Data. The first folder to check is ~/Library/Developer/Xcode/DerivedData. Xcode keeps build products and indexes there for every project it has opened, and it doesn’t remove them when the project is gone.

du -hd1 ~/Library/Developer 2>/dev/null | sort -h

DerivedData is the friendliest case on this list: Xcode rebuilds what it needs on the next build. Quit Xcode, then move the folders for old projects to the Trash. The cost is one slower build the day you return to a project.

Next to it you’ll often find iOS DeviceSupport and simulator devices, which need a little more care. We cover them, and the one Xcode folder you should keep, in What Xcode leaves on your Mac.

Build output is a cache with a longer name. Xcode can always make it again.

4. Virtual disks: Docker and friends

Difficulty3 of 5

A Terminal window running docker system df, showing images, containers, local volumes and build cache with a reclaimable column
Ask Docker what’s inside its disk before you touch it. Example output.

Virtual machines and container tools keep everything inside one large disk image. Docker Desktop is the common one on a developer’s Mac: by default its images, containers, volumes and build cache live in a single Docker.raw file under ~/Library/Containers/com.docker.docker. Storage settings sees one big file that fits no category, so it lands in System Data.

Two things to know. The file is sparse, so Finder may show its maximum size rather than what it really takes; Docker Desktop shows both in Settings › Resources › Advanced. And you should never move or delete it in Finder. Ask Docker what’s inside instead. This only reads:

docker system df

The RECLAIMABLE column is Docker’s estimate of what unused images, stopped containers and build cache would free. Remove those from Docker itself (Docker’s FAQ points to docker system prune for stopped containers, unused networks, dangling images and build cache). Removed images don’t go to the Trash; you pull or build them again.

Clean a virtual disk from the inside, with the tool that owns it.

5. Simulator runtimes

Difficulty4 of 5

Xcode Settings, Components pane, listing installed simulator runtimes for several iOS versions with the storage each one would free
Each simulator runtime is several gigabytes. Xcode shows what removing one would free. Example data, not a real Mac.

The simulated operating systems Xcode downloads, one per iOS, watchOS or visionOS version, are big disk images that live outside your home folder. They’re easy to forget, because they don’t appear in any project.

The right place to manage them is Xcode › Settings › Components, which lists each runtime with the storage you’d recover. Click the info button next to one you no longer test on and choose Delete. To list them from Terminal without changing anything:

xcrun simctl runtime list

Don’t delete runtime folders by hand. They’re managed disk images, and removing them outside Xcode or simctl can leave things half-mounted. A runtime you remove can be downloaded again, but that’s a multi-gigabyte download, so it earns the fourth star.

Remove what you don’t test on, and do it from Xcode.

What to leave alone

Some parts of System Data really are the system. Swap and sleep files in /private/var/vm are sized by macOS and come back after a restart. Anything under /System is protected for good reason. And “delete everything in ~/Library” is advice that ends with apps losing their settings, licenses and data.

If you want macOS to do some of the tidying for you, Apple notes that starting up in safe mode clears certain system caches, which are created again as needed. It’s a temporary win, useful when you need room to finish an update.

Conclusions

Decision diagram with two questions in order: is its cause still alive? If yes, leave it. If no, does it come back if removed? If yes, let it go; if no, look twice before you clear
The same two questions work on every part of System Data.

System Data isn’t a thing you empty. It’s a list you haven’t read yet. Read it part by part and the same two questions sort almost everything:

  1. Is its cause still alive? A cache of an app you use, a project you’re building, a runtime you test on: leave it.
  2. If I remove it, does it come back? Caches and DerivedData: yes, on their own. Docker images and simulator runtimes: only by downloading or building again. Backups and anything you made: no.

Don’t try to delete System Data. Find the parts with a dead cause, and clear each one with the tool that made it.

If you’d rather see those parts listed for you, project by project and with a note on whether each one rebuilds, that’s the job Haikos Clean was built for. It moves only what you pick, to the Trash first.

Questions people ask

Is it safe to delete System Data on a Mac?

There is no single System Data folder to delete, and Apple says its contents are managed by macOS. What you can safely remove are the parts you recognise: caches of apps you deleted, Xcode DerivedData, simulator runtimes you no longer test on and unused Docker images, each through its own tool. Leave /System, /private/var and the rest of the system folders alone.

Why is System Data so large on my Mac?

Because it is a remainder: anything Storage settings can’t attribute to Applications, Documents, Photos or another category lands there. On a developer’s Mac that usually means app caches, Xcode build products, simulator runtimes and a Docker disk image. Local Time Machine snapshots also count while they exist, which is why the number can change by itself overnight.

Does restarting a Mac reduce System Data?

Often a little. A restart clears swap and temporary files, and Apple notes that starting up in safe mode clears certain system caches, which come back as needed. It will not touch the big parts, such as build folders, simulators or virtual disks, because those are ordinary files that stay until you or their tool removes them.

Sources

Paths and commands were checked against these pages on the date above.

Mac storage

How to Check What’s Using Storage on a Mac

Where to check storage on a Mac in every recent macOS version, what the categories mean, and how to measure the large folders Storage does not name.

5 min read

All guides