How-To Guides5 min read

How to Free Up Mac Storage and Shrink Bloated System Data Safely

Audit macOS APFS storage, thin local Time Machine snapshots, remove stale developer and iOS artifacts, and shrink System Data without third-party cleaner apps.

You cannot delete System Data directly inside macOS System Settings because macOS groups logs, caches, VM swap, application support files, and local snapshots into that bucket. Instead, empty the Trash, delete old iOS backups and Downloads, thin local APFS snapshots with tmutil, clear developer caches you recognize, or restart in Safe Mode to flush system caches.

Key takeaways

  • Measure physical free blocks with df -h / before trusting Finder's purgeable space estimate.
  • Thin local snapshots with tmutil instead of blindly wiping ~/Library.
  • Avoid third-party cleaner utilities that demand full disk permissions to delete unknown caches.

Quick facts

  • Apple distinguishes free storage space (physically open blocks) from available storage space (free space plus purgeable caches).
  • Deleting a file to Trash does not reclaim APFS blocks until you empty the Trash.
  • Local Time Machine APFS snapshots are tracked via tmutil listlocalsnapshots /.
  • Booting into Safe Mode clears certain system caches temporarily without editing protected files.
  • Built-in Storage settings let you remove iOS backups, large documents, and Mail attachments safely.

Few macOS diagnostics frustrate users more than opening Storage settings, seeing System Data swallow 80 GB or more, and realizing there is no Delete button beside it. That gray bar is not one broken file. Apple defines System Data as a catch-all bucket covering macOS logs, caches, virtual memory swap files, fonts, plug-ins, and third-party application support data that fall outside named categories like Applications or Photos.

In my own Mac maintenance workflow, I avoid third-party "disk cleaner" apps that promise one-click System Data miracles. Those utilities either delete benign caches that macOS immediately rebuilds, or worse, wipe app containers you actually need. A short audit using Apple's Storage settings and a handful of read-first Terminal commands reclaims real space without breaking your workstation.

macOS APFS Storage and System Data Cleanup Map
macOS APFS Storage and System Data Cleanup Map

Original SVG diagram by Ajay Kumar Chaturvedi (CC BY 4.0).

Prerequisites

Make sure you have the following before clearing files or snapshots:

  • A Mac running macOS Ventura 13 or later (including macOS Sequoia 15, Tahoe 26, or macOS 27 Golden Gate).
  • An external backup drive or cloud copy for any Downloads, Photos, or project folders you plan to move or remove.
  • Administrator access if you plan to inspect root snapshots or developer tool caches in Terminal.

Step-by-Step Storage Audit and Cleanup

Step 1: Measure true free blocks vs purgeable space

Open Apple menu > System Settings > General > Storage and wait for the colored bar to finish calculating. Click All Volumes if you want to view every APFS volume inside your startup container. Keep in mind that Apple separates free storage space (physically empty disk blocks) from available storage space (free space plus purgeable caches that macOS expects to reclaim later).

Next, open Terminal from Applications > Utilities and check the physical filesystem numbers directly:

ZSH
df -h /

Focus on the Avail column. If Avail is tightly compressed, installers and Xcode builds can fail even when Finder insists you have plenty of available space.

Step 2: Clear Trash, Downloads, Mail, and old iOS backups

Backup Warning: Moving a file to the Trash leaves every byte allocated on your SSD until the Trash is emptied. Before emptying Trash, deleting iOS files, or removing items from ~/Downloads, double-check that nothing in those folders is the only copy you own.

Start inside the built-in System Settings > General > Storage categories that include an Info button:

  1. Open Trash and confirm whether you can empty it immediately, and consider enabling Empty Trash automatically after 30 days.
  2. Open iOS files to remove outdated local iPhone or iPad device backups and firmware archives you no longer need.
  3. Open Documents, switch to Large Files or File Browser, and move bulky video exports or disk images (.dmg and .iso files) to an external drive or delete old installers.
  4. Open the Mail app if you use it locally and choose Mailbox > Erase Junk Mail and Mailbox > Erase Deleted Items.

If you keep massive Photos or iMovie libraries locally, Apple's own storage guidance recommends moving those libraries onto a dedicated external SSD rather than squeezing your internal boot volume.

Step 3: Inspect what is actually swelling inside your Library

When named categories look normal and System Data still looks huge, inspect your home Library directories in read-only mode before touching anything:

ZSH
du -sh ~/Library/* 2>/dev/null | sort -h

Look at the largest lines near the bottom of the output. Common, legitimate culprits include ~/Library/Caches, ~/Library/Developer (Xcode DerivedData and old iOS simulator runtimes), ~/Library/Containers (cloud sync caches or messaging attachments), and ~/Library/Application Support.

I never run recursive rm across ~/Library/Application Support blindly, because apps store license tokens, local databases, and browser profiles there. Instead, remove only caches belonging to tools you recognize:

ZSH
du -sh ~/Library/Developer/Xcode/DerivedData 2>/dev/null
brew cleanup --prune=all

If DerivedData is consuming tens of gigabytes and you are not mid-compile, you can clear old build intermediates safely through Xcode settings or by removing stale project subdirectories inside DerivedData once Xcode is closed. If you use Docker or virtual machines, prune unused container images through their own CLI rather than deleting raw disk files on disk while the VM daemon is running.

Step 4: Inspect and thin local Time Machine APFS snapshots

When Time Machine is enabled and your external backup disk has been disconnected for days, macOS holds local hourly APFS snapshots on your internal drive. Those hidden snapshots often inflate the apparent System Data footprint. List them first:

ZSH
tmutil listlocalsnapshots /

If you see dozens of com.apple.TimeMachine.*.local entries and need immediate physical free space, connect your Time Machine drive so backups can sync offsite, or ask tmutil to thin roughly 10 GB of local snapshots at maximum urgency (4):

ZSH
tmutil thinlocalsnapshots / $((10 * 1000 * 1000 * 1000)) 4

I prefer thinlocalsnapshots over deletelocalsnapshots because thinning respects macOS snapshot reclamation rules while keeping recent recovery points intact whenever possible.

Step 5: Flush OS-managed caches cleanly using Safe Mode

If System Data remains stubbornly elevated right before a macOS update, do not attempt to unlock /System or delete files under /private/var/vm. Instead, let macOS clear system caches through Safe Mode:

  1. Choose Apple menu > Shut Down and wait until the screen is completely black.
  2. On Apple silicon, press and hold the power button until Loading startup options appears.
  3. Select Macintosh HD, hold the Shift key, and click Continue in Safe Mode.
  4. Log in once, confirm Safe Boot appears in the menu bar, wait a minute, and then restart normally.

Apple specifically documents Safe Mode as a safe way to clear temporary system caches when you need breathing room for an installation.

Expected Result

After emptying Trash, pruning old iOS backups, trimming developer caches, thinning stale local snapshots, and restarting normally, df -h / reports higher physical Avail capacity and System Settings > General > Storage reflects a smaller System Data footprint within a few minutes.

Troubleshooting

System Data drops in Terminal but the Settings bar looks unchanged

macOS updates the categorized Storage bar asynchronously as Spotlight recalculates metadata. Quit System Settings, wait two minutes while connected to power, and reopen General > Storage alongside a fresh df -h / check to confirm the kernel already sees the freed blocks.

tmutil returns no snapshots, yet disk space is still tight

Run sudo du -xhd 1 /Users/$USER (or inspect ~/Library/Containers and ~/.cache / ~/.npm / ~/.cargo if you write software) to find hidden dot-directories inside your home folder. Hidden package-manager caches live outside Documents, so macOS rolls them into System Data.

A third-party sync app re-downloads files immediately

If you delete local files inside an active iCloud Drive, Dropbox, or OneDrive folder, the sync engine may simply pull them down again unless you turn on on-demand / Optimize Mac Storage features or unsync those folders intentionally.

Sources