Storage Guide•6 min read•Aug 25, 2026

Emergency Guide: How to Fix "Your Disk is Almost Full" on Mac

Elena Rostova
Principal macOS Engineer

Quick answer

Start with the fastest wins: empty the Trash, delete large files in Downloads, remove old iPhone or iPad backups (Finder → your device → Manage Backups), and clear Xcode DerivedData or Docker images if you develop. Then review System Settings → General → Storage and restart so macOS releases purgeable space and old snapshots.

1. Emergency Triage: What NOT to Delete

When panic sets in, many users accidentally delete critical system files or damage their user profiles. Follow these essential safety rules:

  • NEVER touch: /System, /usr, /bin, or /private/var/db.
  • Do NOT force-empty swap: The dynamic pager (/private/var/vm/swapfile*) will crash running processes if deleted directly. A simple reboot reclaims virtual memory swap.

2. 5 Quick Wins to Immediately Free 20GB

Recover disk space right now with these three safe targets:

# 1. Empty the macOS Trash immediately
rm -rf ~/.Trash/*

# 2. Delete downloaded .dmg and .pkg installer disk images
find ~/Downloads -type f \( -name "*.dmg" -o -name "*.pkg" -o -name "*.iso" \) -delete

# 3. Clear temporary user diagnostic crash logs
rm -rf ~/Library/Logs/DiagnosticReports/*

3. Clearing Bloated Web & Electron App Caches

Modern Electron apps like Slack, Discord, Microsoft Teams, and Spotify maintain local cache replicas that expand to multiple gigabytes each:

# Clear Google Chrome disk cache
rm -rf ~/Library/Caches/Google/Chrome/Default/Cache/*

# Clear Slack and Discord application caches
rm -rf ~/Library/Application\ Support/Slack/Cache/*
rm -rf ~/Library/Application\ Support/discord/Cache/*

4. Removing Forgotten iOS Backups and Installers

If you ever connected your iPhone or iPad to your Mac to sync, full device backups (often 30–80 GB) may still be resting in:

~/Library/Application Support/MobileSync/Backup

Open Finder > Go > Go to Folder..., paste that path, and delete old device backups from previous years.

Continuous Storage Intelligence with CleanYourMac Space

Never get locked out by disk full errors again. CleanYourMac Space monitors your internal drive with lightweight background checks and alerts you when cache buildup approaches critical capacity.

Skip the Terminal: see it all in one scan

CleanYourMac Space maps every cache, build folder and model file by size, then cleans only what you pick — everything goes to the Trash first, so it's always recoverable.