Sub topic 4
Purgeable space: why free space changes
This chapter explains purgeable space, the storage macOS can reclaim on its own. It assumes you can open System Settings and read the Storage pane, and that you know what the home folder and the Library folder are. Running a few commands in Terminal is optional but helpful. The earlier chapters on how APFS volumes share free space and on Storage categories cover the background. Here you will learn why the free-space number moves without any action from you, and how to check it.
What purgeable space is
Purgeable space is disk space that holds data macOS can delete when it needs room, because that data can be downloaded or rebuilt later. The data is on disk right now. The system has marked it as expendable.
Typical purgeable items include:
- Files from iCloud Drive that are stored locally but also exist in iCloud, when Optimize Mac Storage is on.
- Photos originals that are kept in iCloud, when "Optimize Mac Storage" is on for Photos.
- Caches and temporary files that apps have marked as safe to remove.
- Older downloaded media such as watched Apple TV movies and shows.
- Time Machine local snapshots, which macOS removes when space gets low or after a set period.
The key point is that purgeable data is not a separate area of the disk. It is ordinary data with a label that says "removable on demand."
Two ways to count free space
macOS can report free space in two ways. The two numbers differ by the amount of purgeable space.
| Measure | What it counts | Where you see it |
|---|---|---|
| Available (including purgeable) | Truly empty space plus purgeable space | Finder Get Info on the disk, the Storage pane |
| Free (strictly empty) | Only blocks that hold no data at all | Some Terminal tools, Disk Utility |
The first number is closer to what an app can actually get. When an app asks for more space than is strictly empty, macOS deletes purgeable data first and then grants the request. The second number is the conservative one.
This is why two tools can disagree on free space by many gigabytes on the same Mac. Neither is wrong. They answer different questions.
Why free space changes on its own
Free space can go up or down while you do nothing. Several mechanisms cause this.
- A large download or install needs room. macOS purges data to make space, so the "available" figure may barely change, but the purgeable figure drops.
- A snapshot is created or expires. Time Machine local snapshots are created about once an hour while a backup disk is configured, and they are removed automatically after about 24 hours or when space is needed.
- iCloud evicts local copies. With Optimize Mac Storage on, the system removes local copies of older files when space is low and keeps them in iCloud.
- Caches grow and are trimmed. Apps write caches during use, and macOS can mark some as purgeable.
- Background maintenance runs. Updates, indexing, and similar jobs add and remove temporary data.
Because the system does this reclaiming itself, a Mac with a small "free" number is not necessarily in trouble. A Mac with a small "available" number, which includes purgeable space, is.
How automatic reclaiming works
macOS does not purge continuously. It reclaims space when there is pressure, meaning when free space falls below internal thresholds or when a request cannot be satisfied.
The sequence looks like this.
Two consequences follow from this design.
- Deleting purgeable data yourself usually gains you nothing. The system would have done it anyway when needed, and the freed space is not extra.
- The system purges in an order it chooses. You cannot rely on a specific file being removed first.
Reading purgeable space in System Settings
Open System Settings, choose General, then Storage. At the top of the pane, the bar shows categories, and the figures show used and available space. Purgeable data is not usually drawn as its own category. It is spread across the categories that contain it.
In Finder, select the startup disk and press Command-I. The Get Info window lists two values:
- Capacity: the total size of the volume.
- Available: empty space plus purgeable space, often shown with the purgeable amount in parentheses.
- Used: space occupied by data that cannot be purged.
If Available is far larger than what Terminal reports as free, the difference is your purgeable space.
Checking it from Terminal
You can see the strict view of free space with df. The following command reports the volume that holds your user data.
df -h /System/Volumes/DataThe Avail column shows the conservative number. On a Mac with a lot of purgeable data, it will be noticeably lower than the Available value in Finder Get Info. Comparing the two gives you a rough estimate of purgeable space.
A caution applies to the output. On APFS, all volumes in a container share the same free space. The Used column for /System/Volumes/Data may not add up to the container total, because other volumes such as the system volume, Preboot, and VM also use space in that container. Do not expect these figures to match the Storage pane exactly.
Time Machine local snapshots as purgeable space
A common source of large purgeable amounts is Time Machine local snapshots. A local snapshot is a point-in-time copy of the startup volume that APFS stores on the same disk. It lets Time Machine restore earlier file versions even when the backup drive is not connected. Snapshots are cheap at creation, because APFS shares unchanged data, but they hold on to old versions of files that you have since changed or deleted. Deleting a large file while a snapshot still references it does not free the space until the snapshot goes away.
List snapshots with:
tmutil listlocalsnapshots /The command prints one line per snapshot, each named with a date and time. If it prints nothing, no local snapshots exist. A later chapter in this tutorial covers removing them. For this chapter, the important point is that they explain a common situation: you delete 20 GB of files and free space barely moves. The snapshot still holds those blocks, and the space is counted as purgeable until the snapshot expires.
Common errors and misunderstandings
"I deleted files but free space did not grow." Check for local snapshots and for items that moved to the Trash. Files in the Trash still occupy space until the Trash is emptied. Snapshots may keep the old blocks alive for up to a day.
"My Mac says 200 GB available but an installer says there is not enough space." Some installers check strictly empty space and do not trigger purging. Restarting the installer, or freeing space manually, can help. Emptying the Trash and closing large apps also reduces pressure.
"I should clear purgeable space to speed up my Mac." Purgeable data does not slow the machine. It is a reserve. Forcing it out only makes macOS re-download or rebuild it later.
"Purgeable space is wasted space." It is not. It is used space that the system can reclaim without asking you.
"The numbers in df, Finder, and Storage settings all differ." They do, and that is expected. They use different definitions of free space and different rounding. macOS also reports sizes in decimal units (1 GB equals 1,000,000,000 bytes) in Finder and Storage settings, while df -h uses binary units (1 GiB equals 1,073,741,824 bytes). Use one tool consistently when you compare before and after.
A repeatable way to measure change
Because the numbers move, take your measurements in a consistent way.
- Close large apps and let downloads finish.
- Record the Available figure in Finder Get Info on the startup disk.
- Record the output of
df -h /System/Volumes/Datafor the strict view. - Run
tmutil listlocalsnapshots /and note how many snapshots exist. - Make your change, such as deleting files and emptying the Trash.
- Repeat steps 2 to 4 and compare each figure with its earlier value.
If Available rose by about the amount you deleted, the change worked. If only the strict free space rose, you may have freed purgeable data, which has little lasting value.
Exercise
You delete a 15 GB folder and empty the Trash. Finder shows Available space rose by only 2 GB, and tmutil listlocalsnapshots / lists several snapshots from the last day. What is the most likely explanation, and what should you do?
Show answer
The local snapshots still reference the deleted data, so the blocks are not free yet. Most of the 15 GB is held until the snapshots expire, which usually takes up to about a day, or sooner if the disk runs low on space. The right action is usually to wait and check again later. Do not force anything. If you urgently need the space, a later chapter shows how to remove snapshots with tmutil.
Exercise
Finder Get Info says 120 GB available, while df -h /System/Volumes/Data shows 45 GB in the Avail column. What accounts for most of the difference, and which number should you use to judge whether an app can install?
Show answer
The difference of roughly 75 GB is mostly purgeable space, which Finder includes and df does not. In most cases macOS will purge data to satisfy a request, so the Finder figure is the better guide to what is really obtainable. The df figure is the safer guide for tools that check strictly empty space and do not trigger purging.