System & storage

How to free up space on a Mac without deleting data

Free up space on a Mac in this order: empty the Trash, remove iOS backups you no longer need, clear app caches, delete old local APFS snapshots, uninstall unused apps, clear developer caches, move large media to an external drive, then restart and recheck. Each step targets files that macOS or the app can rebuild, or data that exists somewhere else, so you rarely have to delete anything irreplaceable.

Updated 2026-10-27

Key points

  • Empty the Trash first; deleted files still occupy disk until you do.
  • Caches, local snapshots and developer build output are regenerable, which makes them the safest large wins.
  • Old iOS backups and duplicate media are copies, but confirm you have another copy before removing them.
  • Moving large files to an external drive frees space without deleting anything, provided you verify the copy first.
  • Restart after cleaning so macOS recalculates storage and releases purgeable space.

A full disk is easier to fix when you start with the largest, safest items rather than whatever a cleanup prompt suggests. Empty the Trash, clear regenerable caches and local snapshots, remove unused applications, and move large media to an external drive. The steps below are ordered so that each one is reversible or costs nothing but a re-download.

Start by recording the current free space with df -h / and the Storage view, so you can tell what actually worked. If you do not yet know where the space went, read what is taking up space on your Mac first.

1. Empty the Trash

Deleted files keep occupying disk until the Trash is emptied. Use Finder > Empty Trash. In Terminal, rm -rf ~/.Trash/* does the same thing but is permanent — there is no undo, so verify the contents first. External drives have their own hidden Trash folders that the main command does not touch; empty them from Finder with the drive selected.

2. Remove old iOS and iPad backups

Backups live under ~/Library/Application Support/MobileSync/Backup, one folder per device. Measure them:

du -sh ~/Library/Application\ Support/MobileSync/Backup/*

Delete backups for devices you no longer own, or where the phone is also backed up to iCloud. Finder’s Manage Backups is the safer route. Never delete the only backup of a device you still rely on.

3. Clear app caches

~/Library/Caches holds browser, streaming and thumbnail caches that apps rebuild on demand. Quit the apps you are about to clean, then remove their individual folders rather than the Caches directory itself:

du -sh ~/Library/Caches/* | sort -hr | head -20
rm -rf ~/Library/Caches/com.example.app

Running apps may misbehave if their cache disappears mid-session, so close them first, and accept a slower next launch. For a per-app walkthrough, see how to clear cache on a Mac.

4. Delete old local APFS snapshots

Time Machine keeps local snapshots on the startup disk, invisible in Finder, sometimes holding tens of gigabytes. List and remove them:

tmutil listlocalsnapshots /
sudo tmutil deletelocalsnapshots com.apple.TimeMachine.2026-10-20-120000.local

This removes local rollback points for those snapshots, not your external backup. Delete only snapshots you are sure you do not need. Mac System Data covers how snapshots fit into the storage categories.

5. Uninstall apps you do not use

Dragging an app to the Trash frees the app bundle, but its support data, caches, preferences and login items remain. Removing the app plus leftovers is often worth several gigabytes. The full procedure, including which folders are safe, is in how to uninstall apps on a Mac.

6. Clear developer caches

Development tools accumulate regenerable output faster than anything else:

rm -rf ~/Library/Developer/Xcode/DerivedData/*
xcrun simctl delete unavailable
npm cache verify
brew cleanup
docker system prune -af

docker system prune -af deletes all unused images, containers and build cache — not just dangling layers — so read the confirmation prompt. Omit it if you are unsure which images you still need. Xcode Archives are not included here: they are the only copy of shipped builds unless you keep artifacts elsewhere.

7. Move large files and media to an external drive

Moving data is not deletion. Find the largest media files first:

du -ah ~/Movies | sort -hr | head -20

Copy them to an external SSD, open a few to confirm the copy is intact, then delete the originals and empty the Trash. For a Photos library, move the entire .photoslibrary bundle while Photos is closed, or keep originals in iCloud and enable Optimize Mac Storage. Do not split a Photos library by dragging files out of it in Finder.

8. Restart and recheck

Restart the Mac, then compare df -h / and the Storage view with your starting numbers. A restart clears temporary files and forces macOS to recalculate, and some space may have been held as purgeable until the system needed it.

What not to delete

These items look like clutter but hold data, credentials or system state:

  • ~/Library/Application Support — app databases, profiles and project data
  • ~/Library/Containers and ~/Library/Group Containers — sandboxed and shared app data
  • ~/Library/Keychains — passwords and certificates
  • /System, /usr and /private/var/db — protected system files
  • ~/Library/Developer/Xcode/Archives — the only copy of archived builds unless stored elsewhere
  • The Photos library contents, Mail data, or any folder you did not create
  • An iOS backup that is the only backup of a device you still use

Also avoid bulk-deleting ~/Library or any folder a cleanup tool cannot explain. If a tool cannot tell you what an item is and what happens when it is removed, skip it.

How Maclean handles freeing up space

Maclean scans the known large contributors and labels every item before you delete it, so caches, snapshots, backups and user data are not presented as the same kind of file. Large files go to the Trash and can be restored from history, protected Apple applications are excluded, and APFS snapshots can be reviewed and removed in the same view. The app keeps space history with growth trends and a forecast, and all scanning happens locally without uploading file names.

The CLI is free and open source under Apache-2.0, works on macOS and Windows, covers 60+ developer cache categories, and supports dry-run, JSON output and scheduled runs:

maclean check-disk --breakdown
maclean clean --tab dev-cache --dry-run
maclean clean --tab dev-cache --yes --format jsonl

The Mac app has a 14-day full trial with no credit card; a one-time $19.90 launch license covers up to three personal Macs and 1.x updates.

Bottom line

Free space in the order that minimizes risk: Trash, backups you do not need, caches, snapshots, unused apps, developer output, then large media moved to another disk. Measure before and after, and leave anything you cannot identify.

FAQ

Frequently asked questions

How much space can I realistically free up on a Mac?

It depends on what you have accumulated. Caches, local snapshots, old iOS backups and developer artifacts commonly account for tens of gigabytes on a used Mac. The only reliable way to know is to measure the folders before deleting.

Does emptying the Trash really free disk space?

Yes. Files in the Trash still occupy disk until the Trash is emptied. The same applies to external volumes, which keep their own Trash folders and are not emptied by the main Empty Trash command.

Are caches safe to delete?

App caches are rebuilt on demand, so removing them is safe in the sense that no user data is lost. Quit the app first, remove the contents rather than the cache folder, and expect a slower first launch afterward.

Will deleting local snapshots break Time Machine?

No. Local snapshots are on-disk recovery points, not your backup archive. Deleting them removes local rollback options for those dates but leaves your external Time Machine backup intact.

Why does free space not increase immediately after deleting files?

macOS may still be calculating, the files may be in the Trash, or the space may be marked purgeable and released later. Restart and check again with df -h / and the Storage view.

Preview first, then clean safely

Maclean breaks down caches, app data, large files and APFS snapshots, and labels the risk of every item before deletion.

Download for Mac→