How to Free Up Disk Space on Windows and macOS
When your disk fills up, your computer slows down. Here’s how to clean it up without deleting anything important.
Windows
1. Storage Sense (Automatic)
Settings → System → Storage → Storage Sense → Turn onStorage Sense automatically deletes temporary files and empties the Recycle Bin on a schedule.
2. Disk Cleanup (Manual)
# Open Disk Cleanup
Start menu → type "Disk Cleanup" → Select drive
# Or run from command line
cleanmgrClick “Clean up system files” to find Windows Update cache, which can be several gigabytes.
3. Find Large Files
Settings → System → Storage → Show more categoriesOr use File Explorer:
- Open This PC
- Type
size: >1GBin the search box - Review and delete unnecessary files
4. Uninstall Unused Apps
Settings → Apps → Installed apps → Sort by sizeUninstall anything you haven’t used in months.
5. Clear Temp Files
# Run from Start menu
%temp%
# Select all (Ctrl+A) and delete (skip files in use)Also clear the Recycle Bin — files there still take up space.
macOS
1. Storage Management
Apple menu → System Settings → General → StoragemacOS shows a color-coded breakdown of what’s using space.
2. Optimize Storage
Click the “i” button next to each category:
- Recommendations:
- Store in iCloud — keeps recent files locally, older ones in cloud
- Optimize Storage — removes watched Apple TV shows
- Empty Trash Automatically
3. Find Large Files
# In Finder
File → Find → Search: "File size is greater than 100 MB"Or use Terminal:
find ~ -type f -size +100M -exec ls -lh {} \; 2>/dev/null | sort -k5 -rh4. Clear System Cache
# Cache files (safe to delete)
rm -rf ~/Library/Caches/*Warning: Some apps may be slow immediately after clearing cache as they rebuild it.
5. Remove Language Files
# Remove unused language files (saves ~1-2GB)
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/*.platform/Developer/SDKs/*.sdk/System/Library/CoreServices/SystemFolder/Locales/Skip this unless you’re comfortable with Terminal.
Universal Tips
Analyze Disk Usage
| OS | Tool | Command |
|---|---|---|
| Windows | WizTree or WinDirStat | Download from website |
| macOS | Disk Inventory X or DaisyDisk | Download or App Store |
| Linux | du or ncdu | sudo du -sh /* 2>/dev/null |
Clean Package Managers
# npm
npm cache clean --force
# pip
pip cache purge
# Docker
docker system prune -a
# Homebrew (macOS)
brew cleanup -sMove Files to External/Cloud
- Photos and videos — iCloud, Google Photos, or external drive
- Old projects — archive to external drive
- Downloads folder — review and clean monthly
What NOT to Delete
System32(Windows) orSystem(macOS) foldersLibrary/Application Supporton macOS (app data)Program FilesorApplications(use uninstall instead)- Unknown system files — research before deleting
Target Files by Size
| File Type | Typical Size | Where to Find |
|---|---|---|
| Windows Update cache | 2-10 GB | Disk Cleanup → System files |
| macOS Time Machine snapshots | 10-100 GB | Storage Management |
| Browser cache | 500 MB - 2 GB | Browser settings |
| Downloads folder | 1-50 GB | User folder |
| Old backups | 10-200 GB | External drives, cloud |
| Unused apps | 100 MB - 5 GB each | Settings → Apps |
Related: Check our computer speed-up guide and password security tip.