# How to clear System Data on Mac safely

_Updated 2026-10-15_

You cannot delete **System Data** as a whole. You shrink it by removing specific things inside it, and the order matters: start with what is safest and gives the most space. If you want to know first what System Data is made of, read [what is System Data on Mac](/guides/what-is-system-data-on-mac/).


## Before you start

- Make a backup with Time Machine if the Mac holds anything you cannot replace.
- Quit the apps whose caches you are about to remove.
- Delete the **contents** of cache folders, not the parent folders themselves.
- When unsure, move items to the Trash instead of deleting them, so you can put them back.


## 1. Restart and finish updates

Install pending macOS updates and restart. A restart clears temporary files and lets macOS finish cleanup it has queued. It costs nothing and sometimes frees several gigabytes.


## 2. Use the built-in recommendations

Go to **System Settings → General → Storage**. The recommendations include emptying the Trash automatically, optimising storage and reducing clutter. They are conservative and safe.


## 3. Clear app caches

This is usually the biggest win. In Finder choose **Go → Go to Folder** and enter:

```
~/Library/Caches
```

Switch to list view, sort by size, and delete the contents of the largest folders after quitting the apps that own them. You can see sizes quickly in Terminal as well:

```
du -sh ~/Library/Caches/* 2>/dev/null | sort -h | tail -15
```

Some folders there are protected by macOS and cannot be removed. That is normal.


## 4. Remove old logs

```
~/Library/Logs
```

Open it the same way and delete the contents of large folders. They are rarely more than a few hundred megabytes.


## 5. Check snapshots

```
tmutil listlocalsnapshots /
diskutil apfs listSnapshots /
```

Time Machine local snapshots are removed by macOS automatically when it needs space. The snapshot named `com.apple.os.update-…` belongs to a system update and is not meant to be removed by hand. If System Data is still large after everything else, this is a common reason, and a restart plus waiting often resolves it.


## 6. Developer files

If you build software, this section is usually where the gigabytes are.

- **Xcode build files:** delete the contents of `~/Library/Developer/Xcode/DerivedData`. Xcode rebuilds them.
- **Device support files:** `~/Library/Developer/Xcode/iOS DeviceSupport` is re-created when you plug a device in.
- **Old simulators:** `xcrun simctl delete unavailable` removes simulators you can no longer use.
- **Archives:** `~/Library/Developer/Xcode/Archives` holds app archives; keep the ones you may still need for symbolication.
- **Package caches:** run the cleanup commands below for the tools you use.

```
brew cleanup
npm cache clean --force
pip cache purge
rm -rf ~/.gradle/caches
```

Docker keeps everything in one large disk image, `Docker.raw`. Do not delete the file. Use Docker's own cleanup instead:

```
docker system prune
```

That removes stopped containers, unused networks and dangling images. Add `-a` only if you are happy to download images again. AI tools such as Hugging Face keep model files in `~/.cache`; they can be removed, but you will download them again when needed.


## 7. Find your largest files

```
find ~ -type f -size +500M -print 2>/dev/null
```

Old installers, disk images, videos and archives often turn up here. Review them one by one.


## 8. Let a tool do the sorting

Doing this by hand works, but it is slow and easy to get wrong. [See Your Disk](/) scans your Home folder, shows the result as a map and offers an **Auto clean** that touches only what apps rebuild themselves. See [how See Your Disk cleans](/guides/how-see-your-disk-cleans/) for exactly what it removes.


## What not to do

- Do not run commands copied from random sites that use `sudo rm -rf` on system paths.
- Do not delete `/System`, `/private/var/db` or the whole `~/Library/Containers`.
- Do not turn off System Integrity Protection to remove protected folders.
- Do not delete the swap files in `/private/var/vm`.

Get See Your Disk: [Mac App Store](https://apps.apple.com/us/app/clean-systemdata-seeyourdisk/id6817565741) · [GitHub](https://github.com/bikmeev/see-your-disk)

## Frequently asked questions

**Is it safe to delete everything in ~/Library/Caches?**
Generally yes: apps rebuild their caches. Quit the app first, and expect the next launch to be a little slower while it rebuilds. Delete the contents of an app's cache folder rather than the folder itself, and keep a backup if you are unsure.

**Why did Storage settings not change right after I cleaned?**
Storage settings recalculates in the background and can lag. Wait a few minutes, reopen the Storage pane, or restart the Mac.

**Will clearing System Data make my Mac faster?**
Not directly. It frees space, and a disk that is almost full can slow things down, so reclaiming space can help. Clearing caches by itself does not speed up a Mac.

**Can I remove the snapshot macOS made after an update?**
Not from the normal interface, and you should not need to. macOS removes it by itself. If you want to inspect it, diskutil apfs listSnapshots / lists it.

## Related guides

- [What is System Data on Mac, and why is it so big?](https://seeyourdisk.com/guides/what-is-system-data-on-mac/)
- [How See Your Disk cleans: methods and safety levels](https://seeyourdisk.com/guides/how-see-your-disk-cleans/)
