Sub topic 13
Checking Results and Keeping Space Free
This chapter assumes you can open System Settings and Terminal, and that you have read the earlier chapters on purgeable space, large files, caches, and Time Machine local snapshots. Here you will confirm that your cleanup worked and set up a routine that keeps free space from shrinking again.
Why verify after cleaning
Deleting a file does not always raise the free space figure right away. Three things commonly get in the way:
- Files moved to the Trash still use space until you empty it.
- Time Machine local snapshots can keep deleted data on disk until macOS removes them.
- Purgeable space is counted differently by different tools, so two numbers can both be correct.
Take a measurement before you start and another afterward. Then compare the two instead of trusting a single reading.
Take a before and after measurement
Run this command and note the Available figure.
df -h /System/Volumes/Datadf reports space for the volume that holds your user data. On APFS, volumes in the same container share free space, so check this volume and not only the read-only system volume.
Then compare it with what System Settings shows. Open System Settings, choose General, then Storage. The Storage pane often reports more available space than df, because it counts purgeable space as available. df reports only what is free right now.
| Source | What "available" means |
|---|---|
| `df -h` | Space free right now, without purgeable space |
| Storage settings | Free space plus purgeable space that macOS can reclaim |
| Finder Get Info on the disk | Usually matches Storage settings |
A gap between df and Storage settings is normal. A gap that stays large after you have cleaned up points to snapshots or other purgeable data.
Follow the check sequence
If free space did not rise, list the snapshots:
tmutil listlocalsnapshots /Snapshots that exist can hold space you just deleted. macOS removes them on its own when space is needed, and it also removes them after about 24 hours. You can wait, or connect your Time Machine backup disk so it can finish its backup cycle.
Next, confirm that the folders you cleaned are actually smaller:
du -h -d 1 ~ 2>/dev/null | sort -hr | head -n 10
du -sh ~/Library/CachesIf you use Homebrew, preview what remains to be cleaned without deleting anything:
brew cleanup -nBuild a maintenance routine
Free space tends to shrink slowly. A short, regular check catches the problem before the disk is nearly full.
- Once a month, run
df -h /System/Volumes/Dataand write down Available. - Open Storage settings and look for a category that has grown since last time.
- Run the
ducommand above if one folder looks suspicious. - Empty the Trash and review Downloads.
- Check large files with the
findcommand from the earlier chapter, then decide on each item. - Keep the recommendations that fit your habits turned on, such as Empty Trash Automatically.
A useful rule of thumb is to keep at least 10 to 15 percent of the disk free. macOS needs room for swap files, updates, and snapshots, and a nearly full disk slows down.
Common mistakes
- Reading Storage settings right after deleting and expecting a final number. The pane can take a minute or more to refresh.
- Comparing
dfoutput from before the cleanup with Storage settings from after it. Use the same source both times. - Treating a restart as a fix. It can clear temporary files, but it does not replace a check.
- Clearing caches again and again. Apps rebuild them, so the savings are temporary.
Exercise
After deleting 20 GB of files and emptying the Trash, df -h /System/Volumes/Data shows almost no change in Available space, but Storage settings shows 20 GB more available. What most likely explains this, and what command would you run to check?
Show answer
The deleted data is probably held by Time Machine local snapshots, so it is counted as purgeable. Storage settings includes purgeable space in its figure, while df does not. Run tmutil listlocalsnapshots / to see whether snapshots exist. macOS will reclaim that space when it needs it, or after the snapshots expire.
Exercise
Name two steps you would put in a monthly routine to keep free space from shrinking, and say what you would record.
Show answer
For example, check Storage settings for categories that grew, and run du -h -d 1 ~ 2>/dev/null | sort -hr | head -n 10 to find large folders. Empty the Trash and review Downloads. Record the date and the Available figure from df -h /System/Volumes/Data so you can see the trend.