Sub topic 13
Checking Results and Keeping Space Free
This chapter assumes you can open System Settings and Finder, know where your home folder and ~/Library are, and can run short commands in Terminal. You have already read the Storage categories, found large files, and cleared some caches. Now you need to confirm that the cleanup worked, understand why the numbers may not match your expectations, and set up a routine that keeps space free.
Why verification matters
After you delete files, the free-space number can behave in ways that look wrong. You may delete 20 GB and see only 5 GB come back. You may see free space drop an hour later with no new downloads. Each of these has a specific cause, and checking in the right order tells you which one applies.
The goal of this chapter is a loop with four steps:
- Measure before you change anything.
- Make one kind of change.
- Measure again with the same tool.
- Record the result so you can compare later.
Measuring consistently
Different tools report different numbers, so pick one as your baseline and keep using it.
| Source | What it reports | Includes purgeable space as free? |
|---|---|---|
| Storage settings (System Settings > General > Storage) | Used and available space, split by category | Yes. "Available" counts purgeable space. |
| Finder "Get Info" on the startup disk | Available and capacity | Yes. Finder shows the available figure and may show purgeable space separately. |
| `df -h /System/Volumes/Data` | Space the file system reports as free right now | No. It reports the file system's raw free blocks. |
The gap between the first two rows and the last row is mostly purgeable space. The system can reclaim that space automatically when it needs room, so the Storage pane counts it as available. df does not count it.
Run this before and after a cleanup:
df -h /System/Volumes/DataThe output has columns for size, used, and available. The Avail column is the number to compare. If you also want the figure the Storage pane would show, read the pane itself, and note both numbers in your log.
Why you may not get all the space back
Purgeable space and delayed reclaiming
Some data that you did not delete is still counted as reclaimable. Examples include items that Optimize Storage can remove, cached iCloud files, and local Time Machine snapshots. If df shows less free space than the Storage pane, this is the likely reason. The system frees that space on its own when something needs it, such as a large download or an app update.
This means that the "Available" figure in Storage settings is a promise, not a guarantee. A very large file copy can still fail if the system cannot reclaim the space fast enough, or if the data it would reclaim is not yet eligible for removal.
The Trash
Files you move to the Trash still occupy disk space until you empty it. If you deleted a large folder and see no change, check the Trash first. You can empty it from Finder with Finder > Empty Trash. Do this only after you are sure you do not need anything in it, because emptying the Trash is not reversible without a backup.
Time Machine local snapshots
When Time Machine is enabled, macOS can keep local snapshots on the startup volume. A snapshot preserves files as they existed at a point in time. If you delete a 10 GB file that is part of a snapshot, the blocks remain in use until the snapshot is removed. List the snapshots with this command:
tmutil listlocalsnapshots /The output shows one line per snapshot, named with a date. If there are none, the output is empty and snapshots are not the reason for the missing space. Snapshots expire on their own, usually within about 24 hours, and the system removes them earlier when it needs room. Snapshot space generally shows up as purgeable, not as a fixed category.
Files held open by running apps
If an app has a file open when you delete it, the system keeps the data until the app closes it. Quit apps that were using the deleted files, or restart the Mac, and then measure again. This is a common cause of "I deleted a big file and nothing changed" for video editors, virtual machine tools, and database software.
Cleanup that regrows
Caches are rebuilt when apps run. If you clear a browser cache and then use the browser for an hour, part of the space will return to the cache. That is normal. It is not a sign that the cleanup failed. It only means that clearing a cache gives temporary relief. Prefer to remove data that does not regrow, such as old installers, duplicate downloads, and unused apps.
Checking where the space went
If free space is lower than you expect after a cleanup, repeat the survey from earlier chapters and compare. This command lists the ten largest first-level folders in your home folder:
du -h -d 1 ~ 2>/dev/null | sort -hr | head -n 10Save the output to a file so you can compare later. This writes a dated log into your Documents folder:
mkdir -p ~/Documents/storage-log
{ date; df -h /System/Volumes/Data; du -h -d 1 ~ 2>/dev/null | sort -hr | head -n 10; } > ~/Documents/storage-log/$(date +%Y-%m-%d).txtThe braces group the three commands so that all their output goes into a single file named for today's date. To compare two runs, use diff:
diff ~/Documents/storage-log/2026-10-27.txt ~/Documents/storage-log/2026-11-27.txtReplace the two file names with logs you actually have. The lines that differ show which folders grew.
If you use Homebrew, you can also check what a cleanup would remove without deleting anything:
brew cleanup -nThe -n flag means dry run. It lists outdated downloads and old versions that brew cleanup would delete.
Diagnosing a mismatch
Use this decision flow when the result is not what you expected.
Keeping space free over time
A one-time cleanup helps, but space fills again. A routine is more useful than a large rescue effort.
Set a free-space floor
A practical target is to keep at least 10 to 15 percent of the disk free. APFS and macOS use free space for swap files, temporary files, and system updates. When free space gets very low, the Mac slows down, large updates can fail, and apps can crash while saving. For a 512 GB disk, that is roughly 50 to 75 GB.
Turn on the built-in helpers
Review the recommendations in Storage settings and enable those that fit how you work:
- Store in iCloud, if you already use iCloud and have enough plan space. Files move to iCloud and leave smaller placeholders on the Mac.
- Optimize Storage, which removes watched Apple TV items and older mail attachments once they are safely stored elsewhere.
- Empty Trash Automatically, which removes items that have been in the Trash for 30 days.
- Reduce Clutter, which helps you review large files and old downloads.
Each of these changes where data lives, so confirm that your backup covers anything you remove locally.
A monthly routine
Pick a date, such as the first of each month, and run the same short checklist.
- Open Storage settings and note the available figure and the largest category.
- Run the
dfcommand and thedusurvey, and save them to your log. - Check the Downloads folder and the Trash.
- Run
brew cleanup -nif you use Homebrew, and read the list before you approve a real cleanup. - Check
du -sh ~/Library/Cachesand clear only if the total is large or an app is misbehaving. - Confirm that your last Time Machine backup completed.
- Compare with last month's log.
du -sh ~/Library/CachesWatch for trends, not only totals
A steady rise in one folder over several months points to a cause. If a folder grows by several gigabytes each month, find the app that writes to it and look for a setting that limits it. Common examples are chat apps that store media, photo libraries with originals, and development tools that keep every old build. Fixing the source is more effective than deleting the output each time.
Common errors
- Comparing numbers from different tools.
dfand the Storage pane use different rules for purgeable space. Compare like with like. - Measuring too soon. Snapshot expiry and cache rebuilds take time. If the result looks odd, measure again after the next restart.
- Clearing caches as a habit. This forces apps to rebuild data, which can make them slower and use network or battery. Clear caches when you have a reason, such as a large total or a faulty app.
- Skipping the backup check. A cleanup is only safe if the data you remove can be restored. Check the date of the last backup before you delete anything you cannot recreate.
- Deleting from system folders. Leave
/System,/Library(outside your home folder), and/private/varalone unless you know exactly what a file does.
Exercise
You delete a 15 GB folder from Documents and empty the Trash. The Storage pane shows 12 GB more available, but df -h /System/Volumes/Data shows only 3 GB more free. Give the most likely explanation and one command that would support it.
Show answer
The remaining 9 GB is most likely held by local Time Machine snapshots that still reference the deleted files. The Storage pane counts that space as purgeable and therefore available, while df reports only blocks that are actually free. Running tmutil listlocalsnapshots / would list the snapshots. If it shows recent snapshots, the explanation fits, and the space will return when they expire or when the system needs room.
Exercise
Why is clearing ~/Library/Caches every week a poor way to keep space free, and what should you do instead?
Show answer
Apps rebuild their caches when they run, so the space returns and the apps have to redo work, which can make them slower. Instead, find the folders that grow over time with a saved du survey, address their source (such as an app's storage setting or old downloads), keep a free-space floor of 10 to 15 percent, and clear caches only when the total is large or an app misbehaves.
Exercise
Write the shell command that appends today's df output for the Data volume to a file named space.log in your home folder.
Show answer
df -h /System/Volumes/Data >> ~/space.log