Skip to content
86% off$349 $48.86code BF2026

Guides

How to Clear System Data on Mac (What's Safe to Delete)

How to clear System Data on Mac: what's inside, which parts you can safely shrink (caches, snapshots, backups, Xcode files) and what never to delete.

GuideUpdated 11 min read

On this page

To clear System Data on a Mac, you shrink its parts one at a time, because macOS has no single button for it. The parts you can safely shrink:

  • Empty your user caches and logs.
  • Delete old iPhone backups and Xcode build files.
  • Restart to reset swap.
  • Let macOS remove local Time Machine snapshots, or thin them yourself.

To see the current System Data total, open System Settings ▸ General ▸ Storage.

What System Data is

System Data is macOS's label for storage that doesn't fit a named category like Applications, Documents or Photos. Older versions of macOS called it "Other." When macOS adds up your storage, anything it can't place in a named bucket goes here.

That makes System Data a mix of three kinds of storage:

  • Junk that comes back on its own. Apps rebuild it as needed.
  • Data you'd miss. Examples are an app's settings or your only iPhone backup.
  • Space macOS manages itself. Swap and snapshots change size without you doing anything, so the total can move noticeably from one day to the next.

What's inside System Data

PartWhere it livesCan you shrink it?
User caches~/Library/CachesYes. Apps rebuild them as needed
Logs and crash reports~/Library/LogsYes
App data~/Library/Application Support, ~/Library/Containers, ~/Library/Group ContainersOnly per app: uninstall the app or clean up inside it
Developer files~/Library/DeveloperMostly yes (Xcode build data, device support, old simulators)
iPhone and iPad backups~/Library/Application Support/MobileSync/BackupYes. Delete the ones you don't need
Swap and sleep image/private/var/vmSwap resets when you restart. Never delete these files by hand
System caches/Library/CachesLeave these to macOS
Local Time Machine snapshotsNot browsable in Finder; counted as purgeable spaceThin them, or let macOS remove them

~ means your home folder.

How to see the breakdown on your Mac

In System Settings (built in)

  1. Choose Apple menu ▸ System Settings.
  2. Click General in the sidebar.
  3. Click Storage.
  4. Wait for the bar at the top to finish calculating.
  5. Hold the pointer over the bar segments to find System Data.

On macOS 12 Monterey, the same view is under Apple menu ▸ About This Mac ▸ Storage.

System Settings shows only a total for System Data. It doesn't say what's inside, and it offers no way to clean it.

In Terminal (read-only sizes)

This command measures the folders that usually make up most of System Data. It only reads sizes and changes nothing:

bash
du -sh ~/Library/Caches ~/Library/Logs ~/Library/Developer "$HOME/Library/Application Support/MobileSync/Backup"

du -sh prints one total per folder.

Some messages you may see in the output:

  • "No such file or directory" means that folder doesn't exist on your Mac. For example, you may have no backups or no Xcode.
  • "Operation not permitted" means macOS privacy protection is blocking Terminal from that folder. The total for it will be too low. See the fixes at the end of this page.
  • Smaller numbers than Finder shows. du -h counts in binary units (1 GB = 1,073,741,824 bytes), while Finder uses decimal units.

To list local Time Machine snapshots (also read-only):

bash
tmutil listlocalsnapshots /

Each snapshot appears on its own line, with its date in the name. If none are listed, snapshots aren't part of your System Data.

In Gigabroom

Gigabroom, our disk cleaner, has a System Data screen that measures these parts for you. It only reads; nothing on this screen moves files.

  1. In Gigabroom's sidebar, under Understand, click System Data (⌘8, Command-8).
  2. Read the three figures at the top:
    • Free now is truly free space.
    • Purgeable is space macOS frees automatically when needed.
    • Used is the rest.
  3. Under LOCAL SNAPSHOTS, check the snapshot list and its dates.
  4. Under BREAKDOWN, look at the rows, largest first.

The breakdown rows are Caches, Developer, Application Support, Containers, Group Containers, iPhone & iPad Backups, Logs, Mail, Messages, Swap & Sleep Image, System Caches and Purgeable. Each row has Reveal in Finder and Open in Disk Map so you can see what's inside.

System Data with Free now, Purgeable and Used readouts, a Local Snapshots list with Thin Snapshots and the Breakdown rows
System Data explains what macOS counts as used.

The Mail and Messages rows need Full Disk Access. Without it they show "Couldn't be read." with a Grant Full Disk Access… button. The permissions doc explains what Full Disk Access adds.

Hidden space. When you scan a whole disk, the Disk Map can show a grey Hidden space item. It appears when Finder counts more than 1 GB more as used than the scan found. Click it to open a sheet that lists where the gap can come from:

  • other volumes on the disk
  • folders the scan couldn't read
  • excluded items
  • local snapshots

Hidden space is an explanation, not something to delete.

Gigabroom needs macOS 14 Sonoma or later. The System Data doc covers every row in detail.

How to clear System Data safely: the parts you can shrink

Caches and logs

Caches are files apps keep so they can load things faster. If you delete them, apps rebuild them as you use them.

To clear caches by hand:

  1. Quit the apps whose caches you want to remove.
  2. In Finder, choose Go ▸ Go to Folder (⇧⌘G, Command-Shift-G).
  3. Type ~/Library/Caches and press Return.
  4. Select the folders inside Caches, not the Caches folder itself.
  5. Press ⌘⌫ (Command-Delete) to move them to the Trash.
  6. To clear logs too, repeat steps 2 to 5 for ~/Library/Logs.
  7. Empty the Trash. No space comes back until you do.

Skip two kinds of cache folders:

  • Apple's own caches (com.apple.… folders). macOS services use them. Many can't be moved, and trashing some makes iCloud sync again.
  • Caches that hold real data. Some apps keep content in their cache folder, for example Spotify, Apple Music, Podcasts and Steam. If you delete those, the app may have to download that content again.

Our guide to clearing cache on Mac goes into more detail.

Gigabroom's Quick Clean (⌘2, Command-2) does the same job with these checks built in:

  • User Caches, Xcode DerivedData, Simulator Caches and User Logs are ticked when they have content.
  • Apple system caches sit in their own group, unticked.
  • Caches of open apps show "App is open" and are skipped. Quit & Clean… asks those apps to quit (you can save first), cleans, then reopens them. It never force-quits.
  • Caches known to hold data are marked "Keeps data" and are never selected.

Everything goes to the Trash after a confirmation. To restore it:

  • Same session: choose Edit ▸ Undo Sweep (⌘Z, Command-Z) to put the last sweep back.
  • After you quit Gigabroom: use Settings ▸ History ▸ Put Back. This works for items still in the Trash.

Restart to reset swap

macOS writes swap files to /private/var/vm when memory runs short. They grow when your Mac stays on for a long time with heavy apps open. A restart resets them, and macOS creates new ones as memory fills again.

The sleep image in the same folder is managed by macOS and doesn't go away with a restart. Don't delete anything in /private/var/vm.

Local Time Machine snapshots and purgeable space

If you use Time Machine, macOS keeps local snapshots on your startup disk. You can't browse them in Finder. They count as purgeable space, which macOS frees automatically when it needs room. This is why Finder's "Available" figure can be larger than your truly free space. For the full picture, see what purgeable space is.

Usually you can leave snapshots alone. The main reason to remove them is that you just deleted a lot of data and want the space back now. A local snapshot can keep those deleted files on disk until the snapshot is removed.

This permanently deletes local snapshots. They don't go to the Trash and can't be restored:

bash
tmutil thinlocalsnapshots / 20000000000 1

This asks macOS to delete local snapshots until about 20 GB (20,000,000,000 bytes) is reclaimed, at the lowest urgency (1).

  • There's no undo. Time Machine makes new local snapshots as it keeps backing up.
  • Your Time Machine backup disk isn't touched.
  • If the command fails, your account may need administrator rights.

In Gigabroom, the Thin Snapshots… button on the System Data screen runs this same command after you confirm:

  1. Choose Free About 5 GB or Free About 20 GB.
  2. Gigabroom shows the result in a "Local Snapshots" alert.

Because the request runs at the lowest urgency, macOS may remove fewer snapshots than the list shows.

iPhone backups and developer files in System Data

iPhone and iPad backups

Device backups are often large, and old ones stay on your Mac until you delete them. They're personal data, so check which ones you still need first.

In Finder:

  1. Connect your iPhone.
  2. Select it in the Finder sidebar.
  3. Click Manage Backups… and delete the backups you don't need.

The guide to deleting old iPhone backups has the full steps.

In Gigabroom:

  1. Open Backups & Libraries (⌘9, Command-9). This screen needs Full Disk Access.
  2. For each device with older backups, click Move Older Backups to Trash….
  3. Choose the backups to remove. The newest backup is always kept and can't be selected.

Encrypted backups start unticked and need a second confirmation, because they also hold saved passwords, Health and Wi-Fi data.

Developer files

If you use Xcode or package managers, ~/Library/Developer and the package caches in ~/Library/Caches can be among the largest parts of System Data.

ItemPathSafe to remove?
Xcode DerivedData~/Library/Developer/Xcode/DerivedDataYes. Xcode rebuilds it on the next build
iOS Device Support~/Library/Developer/Xcode/iOS DeviceSupportYes. Copied again when that device next connects
Xcode Archives~/Library/Developer/Xcode/ArchivesReview first. You need these to symbolicate crash reports from builds you shipped
Simulator caches~/Library/Developer/CoreSimulator/CachesYes. Recreated automatically
Homebrew, pip, CocoaPods, Yarn cachese.g. ~/Library/Caches/Homebrew, ~/Library/Caches/pipYes. Downloaded again when needed

To delete simulators whose runtime is no longer installed (needs Xcode):

This permanently deletes those simulators and their data:

bash
xcrun simctl delete unavailable

This command only removes simulators marked unavailable. Working simulators stay. There is no undo.

To remove simulator runtimes you no longer use, open Xcode's Settings window and go to the section that lists installed platforms.

If you use Docker, its virtual disk is at ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw. Never trash that file. Free space inside it with Docker's own commands, explained in Docker's pruning guide.

Gigabroom's Developer Junk (⌘7, Command-7) lists all of these with a safety label and a reason for each. It also covers node_modules folders and local AI models. For Docker's disk image and unused simulator runtimes, it only shows the size and a command you can copy and run yourself.

For more on developer files:

What not to delete

  • Anything in /private/var with sudo rm. This folder holds swap, system databases and per-user temporary folders. Deleting there can break system services or stop your Mac from starting up properly. Restart instead.
  • /System, /usr and the top-level folders in /Library. These belong to macOS. Never turn off System Integrity Protection to get at them.
  • Whole folders in ~/Library. This includes Application Support, Containers, Group Containers and Preferences. They hold app settings, and for some apps your documents too. Remove one app's data at a time, ideally by uninstalling the app properly.
  • ~/Library/Mail, ~/Library/Messages, ~/Library/Keychains, ~/Library/Mobile Documents (iCloud Drive) and ~/Library/CloudStorage. Clean Mail and Messages from inside those apps.
  • Anything inside a Photos or Music library. Clean up from inside the app, for example in Photos ▸ Recently Deleted.
  • Docker's Docker.raw file. Prune from inside Docker instead.

Gigabroom won't trash protected system, account or cloud locations. When you try to remove personal or app data from the map, it offers to reveal the item in Finder instead.

Which method to use

MethodShows what's inside System DataCleansSnapshotsCost
System Settings ▸ StorageTotal onlyNoNoFree, built in
Finder and TerminalFolder by folder, by handBy handList and thin with tmutilFree, built in
GigabroomMeasured breakdown, snapshot list, Hidden spaceCaches, logs, developer files, older backups (all to the Trash)List, Thin Snapshots…Part of MacSuite, $349 one-time (as of November 2026)

Use whichever fits how often you clean:

  • Finder is enough if you only clear caches once in a while.
  • Gigabroom helps if you want to see where System Data went before deciding, or you clean developer files often and want the safety checks done for you.

Gigabroom is part of MacSuite; you can try it free for 7 days.

Why System Data grows back and when to worry

Some regrowth is normal:

  • Caches refill as you use your apps.
  • Swap grows during long sessions with heavy apps.
  • Time Machine adds local snapshots as it backs up.
  • Xcode builds, iPhone backups and package installs all write to folders that count as System Data.

Clearing caches buys you space for a while, not forever.

Look closer if System Data keeps climbing and you can't link it to a backup, a build or a large download. Gigabroom has two tools for this:

  • What Grew (⌘6, Command-6) compares a scan with an earlier scan of the same folder. It lists the folders that grew and shrank most.
  • Low-space alerts warn when more than 5 GB disappears within 10 minutes, as long as Gigabroom is running.

If your disk is already nearly full, start with Your Startup Disk Is Almost Full.

If System Data doesn't go down

  • You moved files to the Trash but nothing changed. Space only comes back when you empty the Trash. Gigabroom's File ▸ Empty Trash… (⇧⌘⌫, Command-Shift-Delete) then reports how much free space actually changed.
  • You emptied the Trash and still got little space back. A local snapshot may still hold the deleted files. Wait for macOS to remove it, or thin snapshots as described above. More in storage not going down after deleting files.
  • The Storage pane shows an old number. Quit System Settings, open it again, and let the bar finish calculating.
  • Terminal says "Operation not permitted." macOS privacy protection blocks Terminal from some folders in your Library. Give Terminal Full Disk Access in System Settings (search for "Full Disk Access"), or check those folders in Finder instead. Turn the access off again when you're done.
  • Thinning snapshots freed less than you asked for. At the lowest urgency, macOS decides how many snapshots to remove. Try again later, or use an administrator account.
  • Gigabroom shows "Couldn't be read." or "—" for Mail, Messages or backups. Grant Full Disk Access, then measure again.

FAQ

Is it safe to delete System Data?

Not as a whole, and macOS doesn't offer a way to. Caches, logs, developer build files and old device backups are safe to remove. App data, Mail, Messages and anything in /private/var are not.

Does restarting clear System Data?

Partly. A restart resets swap. Caches, backups, developer files and snapshots stay.

If I delete local snapshots, do I lose my Time Machine backups?

No. Thinning local snapshots doesn't touch your Time Machine backup disk. You only lose the restore points kept on your Mac itself.

Why is Finder's "Available" space larger than my truly free space?

Finder's "Available" includes purgeable space, such as local snapshots, optimized iCloud files and caches macOS can evict. macOS frees that space automatically when it needs room, but it isn't empty yet.

Every app.
One purchase.