Guide · macOS storage
What’s taking up space on your Mac, and how to free it
When your Mac says the disk is almost full, the built-in Storage settings only show broad categories like “System Data” or “Documents”. Here’s how to find the folders and files that are really using the space, and which of them are safe to remove.
1. Check storage in System Settings
Open System Settings → General → Storage (on macOS Monterey and earlier: Apple menu → About This Mac → Storage). You’ll see how much space is used and a coloured bar split into categories, plus a few recommendations like emptying the Trash automatically.
It’s a good overview, but it doesn’t tell you which folders are big. “System Data” in particular can be tens of gigabytes with no way to see what’s inside.
2. See every folder with a disk space analyzer
A disk space analyzer scans the whole disk and shows the size of every folder, so you can follow the space down to the exact files. Lacuna is a free, open-source one for Mac:
- Pick your disk. Open Lacuna and choose Macintosh HD, or scan a single folder with ⌘O. Millions of files take seconds.
- Follow the biggest bars. The Space by folder chart shows the largest folders first. Click one to open it and keep going until you reach what’s using the space.
- Check Large files and File types. Large files lists the 200 biggest files, and File types shows how much is apps, developer files, video, photos and documents.
- Collect what you don’t need. Press + on any row, review the exact list of paths, then move them to the Trash.
For the most complete picture, allow Lacuna in System Settings → Privacy & Security → Full Disk Access. Without it, macOS hides the size of protected folders such as Mail and Safari data.
Download Lacuna, free3. The usual space hogs
These are the places that most often turn out to be large. Check them in your scan before anything else.
Xcode build data and simulators
~/Library/Developer/Xcode/DerivedData~/Library/Developer/Xcode/iOS DeviceSupport~/Library/Developer/CoreSimulator
DerivedData holds build caches that Xcode recreates the next time you build, so it is safe to remove. Old device support files and simulators for iOS versions you no longer test against can take tens of gigabytes; remove simulators you don’t need with xcrun simctl delete unavailable.
node_modules and other dependency folders
~/Projects/*/node_modules~/.npm~/.cache
Every JavaScript project keeps its own node_modules, and old projects add up quickly. Delete them in projects you aren’t working on; your package manager reinstalls them when you need them again. Rust target folders and Python virtual environments behave the same way.
Docker images and volumes
~/Library/Containers/com.docker.docker
Docker Desktop stores everything in one large disk image that only grows. Remove unused images, containers and build cache with docker system prune, or use the cleanup options in Docker Desktop.
iPhone and iPad backups
~/Library/Application Support/MobileSync/Backup
Local device backups are often 10–100 GB each. Manage them from Finder: select your device in the sidebar, then Manage Backups…, and delete the ones you no longer need.
Downloads, installers and disk images
~/Downloads~/Desktop
Installers (.dmg, .pkg, .xip), ISOs, virtual machine disks and old screen recordings are usually the largest single files on a Mac. Lacuna’s Large files view lists them biggest first.
App caches
~/Library/Caches
Apps keep caches to load faster and recreate them when needed. Clearing a large cache is usually safe; quit the app first. Leave folders you don’t recognise alone if you aren’t sure what they belong to.
“System Data” and purgeable space
/private/varTime Machine local snapshots
macOS groups caches, logs, local Time Machine snapshots and virtual memory under System Data. Snapshots are removed automatically when space runs low, which is why macOS calls some space “purgeable”. You can list them with tmutil listlocalsnapshots /. A folder scan shows which of these folders are actually large on your Mac.
4. Empty the Trash
Files you move to the Trash still use space until you empty it. Lacuna always moves items to the Trash rather than deleting them, so you can put anything back. When you’re sure, Control-click the Trash in the Dock and choose Empty Trash.
A good rule: only remove things you recognise. Build caches, downloads and old backups are safe to clear; folders inside /System and /Library that you don’t recognise are best left alone.