Updated May 2026

How to Free Up Space on Your Mac (10 Proven Methods)

Your Mac says storage is almost full? Here's how to reclaim 20 to 50 GB safely, with step-by-step instructions and Terminal commands.

In this guide
1. Find what's eating your space 2. Clear user caches (5-20 GB) 3. Remove Time Machine snapshots (10-50 GB) 4. Clean up Xcode data (10-30 GB) 5. Remove Docker data (15-60 GB) 6. Uninstall apps properly 7. Clean up Downloads folder 8. Reduce Mail attachments 9. Optimize iCloud storage 10. Use a Mac cleaner tool

1. Find What's Actually Eating Your Space

Before deleting anything, find out where your storage actually went. Apple's built-in storage overview (System Settings > General > Storage) is often misleading and slow to update. Terminal gives you the real numbers instantly.

Open Terminal and run this command to see the 20 largest folders in your Library:

du -sh ~/Library/* 2>/dev/null | sort -rh | head -20

This usually reveals the biggest offenders: app caches, Xcode data, IDE state files, old container data from apps you uninstalled months ago.

For a full disk overview:

df -h /

This shows you the actual free space on your drive, which is always more accurate than the Finder or System Settings display.

2. Clear User Caches (5-20 GB)

Your ~/Library/Caches folder stores temporary data from every app you use. Over time this can grow to 5-20 GB, especially if you use browsers, IDEs, or creative apps.

Check how much space your caches use:

du -sh ~/Library/Caches

You can safely delete most cache folders. Apps rebuild them on next launch. To clear everything:

rm -rf ~/Library/Caches/*
Be careful with audio production caches

If you use Logic Pro, Ableton, or other DAWs, deleting AudioUnitCache forces a plugin re-validation that can take 10-30 minutes. Delete browser and app caches, but leave audio-related caches alone unless you know what you're doing.

3. Remove Time Machine Local Snapshots (10-50 GB)

macOS keeps local Time Machine snapshots even if you don't have a backup drive connected. These can quietly eat 10-50 GB. Most people don't even know they exist.

Check for local snapshots:

tmutil listlocalsnapshots /

Delete all local snapshots:

for snap in $(tmutil listlocalsnapshots / | cut -d'.' -f4); do sudo tmutil deletelocalsnapshots $snap; done

This is completely safe. Time Machine will create new snapshots when you connect your backup drive.

4. Clean Up Xcode Data (10-30 GB)

If you've ever installed Xcode (even just the command line tools), you might have massive amounts of leftover data:

du -sh ~/Library/Developer/Xcode/DerivedData 2>/dev/null du -sh ~/Library/Developer/Xcode/iOS\ DeviceSupport 2>/dev/null du -sh ~/Library/Developer/CoreSimulator 2>/dev/null

DerivedData is build cache that's safe to delete entirely. iOS DeviceSupport contains data for iOS devices you've connected for debugging. Old simulators can be removed too:

rm -rf ~/Library/Developer/Xcode/DerivedData/* xcrun simctl delete unavailable

5. Remove Docker Data (15-60 GB)

Docker Desktop creates a sparse disk image (Docker.raw or Docker.qcow2) that grows over time. If you're not actively using Docker, this can be 15-60 GB of wasted space.

ls -lh ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw 2>/dev/null

If you're not using Docker, uninstall it completely from Applications. If you need it, run a prune to clean up unused images and containers:

docker system prune -a --volumes

6. Uninstall Apps Properly

Dragging an app to Trash leaves behind caches, preferences, containers, launch agents, and logs scattered across ~/Library. A single app can leave 500 MB to several GB of remnants.

To find leftovers from apps you already deleted, check these locations:

ls ~/Library/Application\ Support/ ls ~/Library/Preferences/ ls ~/Library/Caches/ ls ~/Library/Containers/

Look for folder names matching apps you no longer have installed. For thorough uninstalls, use a dedicated uninstaller tool that finds all remnant categories automatically.

7. Clean Up Your Downloads Folder

Downloads is often the biggest single folder on your Mac. Old DMG installers, ZIP files, PDFs you looked at once, forgotten videos.

du -sh ~/Downloads

Sort by size and delete what you don't need. Or sort by date and remove anything older than 6 months that you haven't touched.

8. Reduce Mail Attachments

Mail downloads and caches every attachment locally. Over years this adds up significantly.

du -sh ~/Library/Mail

In Mail.app: go to Preferences > Accounts > your account > uncheck "Download attachments" or set it to "Recent" to stop caching everything locally.

9. Optimize iCloud Storage

If you use iCloud Drive, enable "Optimize Mac Storage" to keep only recently accessed files local:

System Settings > Apple ID > iCloud > iCloud Drive > Optimize Mac Storage

This offloads files you haven't opened recently to iCloud and frees up local space. The files still appear in Finder but download on demand when you open them.

10. Use a Mac Cleaner Tool

All the methods above work, but they require Terminal knowledge and careful attention to what you're deleting. A good Mac cleaner automates the safe parts and warns you about the risky parts.

What to look for in a Mac cleaner:

MacCare does all of this for $29/year

Risk-classified cleanup with color-coded safety indicators. Hardcoded whitelist protects Documents, Photos, Music and Mail. Full Trash put-back support. Visual TreeMap disk analyzer. 7-day free trial.

⬇ Download Free Trial

macOS 14+ · 1.6 MB · Apple-notarized

How Much Space Can You Expect to Free Up?

Based on typical Mac usage, here's what you can expect to reclaim:

For a typical Mac that hasn't been cleaned in a year, 20-50 GB is realistic. Power users with Xcode and Docker can often reclaim 50-100 GB.

What NOT to Delete

Some folders look like junk but are actually important:

Related guides

Mac running slow? 8 fixes that actually work
MacCare vs CleanMyMac: 2026 comparison
Best Mac cleaner apps in 2026