How to free up space on a Mac
Mac storage full, a macOS update that won't install, or a MacBook Air that's always a few GB from the limit. Here's how to free up space on a Mac, in the order that gets the most back for the least risk.
The short answer: start in System Settings › General › Storage and turn on the recommendations you want, then empty the Trash. Next, clear old installers and videos from Downloads, caches of apps you've quit, old iPhone backups and iPhone software updates, and local Time Machine snapshots. If you write code, Xcode, node_modules, Docker and AI models often hold tens of GB. Then look at chat apps, apps you no longer use, and big files you could move to an external drive. Nothing here needs you to touch /System.
Where do I start?
- Storage settings. Open System Settings › General › Storage. Under Recommendations, Store in iCloud keeps older Desktop, Documents and Photos files only in iCloud, Optimize Storage removes Apple TV movies and shows you've watched, and Empty Trash Automatically erases items that have been in the Trash for 30 days. The info button next to each category lists what's in it.
- The Trash. Files you delete still take space until you empty it: in Finder, choose Finder › Empty Trash. Check it first, because emptied items are gone.
To see which folders are big before you delete anything, read What is taking up space on my Mac?
What can I delete to free up space on a Mac?
Roughly from the most space for the least risk to the slowest decisions:
- Downloads.
.dmgand.pkginstallers you already used, and videos. Sort by size:du -sh ~/Downloads/* | sort -h | tail -20. More in How to find large files on a Mac. - App caches in
~/Library/Caches, one app at a time with the app quit. They rebuild. See Is it safe to delete cache files on my Mac? - iPhone and iPad backups and updates. Old devices' backups and
.ipswfiles are often several GB each. See Where are iPhone backups on a Mac, and how do I delete old ones? and Can I delete iPhone software update files on my Mac? - Local snapshots and purgeable space. Time Machine keeps snapshots on the Mac while the backup disk is away. List them with
tmutil listlocalsnapshots /, and read How do I delete Time Machine local snapshots on a Mac? and My Mac says the disk is full, but Finder shows free space. - Developer clutter. Xcode's DerivedData and simulators,
node_modulesand package caches, Docker's disk image and local AI models: see Xcode taking up too much space, old node_modules folders and package caches, Docker.raw explained and where Ollama, LM Studio and Hugging Face store models. - Chat apps. Messages, WhatsApp and Telegram keep every photo and video you receive. Clean them inside each app: Messages and Mail, WhatsApp, Telegram.
- Apps you don't use. Drag them to the Trash, and check what they left in your Library: How do I uninstall an app on my Mac completely?
- Big files you still want. Videos, photo libraries and old projects can live on an external drive: How to move big files to an external drive on a Mac, safely.
Why is System Data taking so much space?
System Data is everything Storage settings doesn't put in another category: caches, logs, snapshots, swap, backups, app data and virtual machine disks. Most of what you can free from it is on the list above. The breakdown is in What is System Data on a Mac, and how do I make it smaller?, and Apple Intelligence's share in How much storage does Apple Intelligence use on a Mac?
How much free space should a Mac have?
Apple doesn't give a number. macOS needs room of its own: swap grows when memory runs short, Time Machine keeps local snapshots, and every update needs space to download and prepare. A common rule of thumb is to keep 10 to 20 percent of the disk free. When space runs low, macOS first removes purgeable data by itself; when that isn't enough, updates and big downloads are refused for lack of space.
How do I free up space on a Mac for a macOS update?
- Read the number in the message: the installer says how much space it needs. Apple doesn't publish one fixed figure.
- Use System Settings › General › Software Update. Apple says it can use less storage than other ways of installing.
- Compare with what is really free:
df -h /shows free space without purgeable data, which is what some installers check. - If you're only a little short, Apple suggests starting up in safe mode, which clears some system caches, then installing. Restart normally afterwards.
What should I not delete?
- Anything in
/System, and swap files in/private/var/vm: restart instead. - Whole folders in
~/Library/Containersor~/Library/Group Containers: they hold app data such as Mail and Messages, not only caches. - Files inside the Photos library package. Delete photos in the Photos app, then empty Recently Deleted.