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/Containersand~/Library/Group Containers— sandboxed and shared app data~/Library/Keychains— passwords and certificates/System,/usrand/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.