DEV Community

DiskBee(NTFS for Mac)
DiskBee(NTFS for Mac)

Posted on

Deleted Files, Same Full Disk: Inspect APFS Snapshots Before Cleaning

tmutil listlocalsnapshots / can return no Time Machine snapshot names while diskutil apfs listSnapshots / still lists an APFS snapshot. We observed that split while verifying the commands for this article.

The two results are not contradictory: they have different scopes. A related surprise can follow deleting a large build directory. The files disappear from the live tree, but the available-space number barely moves. Before downloading a cleaner or deleting more folders, check whether APFS snapshots still reference some of the old data. This is not the only explanation, and the Storage settings category called “System Data” is not a diagnosis. It is simply a reason to separate file deletion from block reclamation.

The old blocks can still have an owner

APFS uses copy-on-write behavior. A snapshot preserves a point-in-time view without copying the whole volume at the moment it is created. As the live volume changes, blocks needed for that older view cannot all be treated as free merely because the current directory tree no longer references them.

That produces a useful distinction:

  • Deleting a file removes it from the live directory hierarchy.
  • Releasing storage requires that no remaining snapshot or other APFS structure still needs the underlying blocks.

A snapshot therefore does not immediately consume a second copy of every file. Space pressure grows as files are changed or removed after the snapshot. It also means that deleting another current file may not produce the immediate free-space change you expected.

This is a storage-accounting issue, not evidence that the deleted files are secretly still visible in Finder.

Three read-only checks

We verified the following commands on macOS while preparing this article. They only report state; they do not delete snapshots, resize containers, or modify files. Your identifiers and results will differ.

# Capacity as reported for the Data volume.
df -h /System/Volumes/Data

# Time Machine local snapshot names for the startup volume.
tmutil listlocalsnapshots /

# APFS snapshots visible on the volume mounted at /.
diskutil apfs listSnapshots /
Enter fullscreen mode Exit fullscreen mode

Run them separately and read the volume or mount point before adapting any example. Do not substitute a random disk identifier from an online post.

df is the starting point, not a breakdown of what is using space. On a modern startup disk, /System/Volumes/Data is usually the useful place to inspect user data rather than treating the read-only system volume as the whole storage picture.

tmutil listlocalsnapshots / is the narrow Time Machine view. It can return snapshot names containing timestamps. A header with no snapshot names is a meaningful result, but only for that command’s scope.

diskutil apfs listSnapshots / asks the APFS layer directly. Its output can include a snapshot UUID, name, XID, and a Purgeable field. Those fields are useful for identification and policy hints; they are not a per-snapshot size report.

An empty Time Machine list is not an empty snapshot list

This distinction is easy to miss.

The split above is a scope issue, not a contradiction. Time Machine is one source of local snapshots. macOS can also have APFS snapshots associated with system updates, and other software may create snapshots through supported system interfaces. Do not assume every snapshot belongs to Time Machine, and do not assume every snapshot is safe to remove just because it appears in the same listing.

The reverse assumption is also unsafe: a Purgeable: Yes field is not a measurement of how many gigabytes you will recover. Nor is it a recommendation to delete the snapshot manually.

What these commands cannot tell you

There is no trustworthy “this snapshot owns 37.4 GB” column in the listings above. Snapshot storage is shared and copy-on-write: blocks can be referenced by the live volume and by one or more snapshots. Assigning one simple size to each snapshot would hide that relationship.

A name or timestamp likewise does not establish the amount of space that would become available if a snapshot disappeared. Two snapshots with similar names can have very different amounts of subsequent change between them.

This is why adding the sizes of visible files, snapshots, and purgeable categories can produce nonsense. Some accounting views describe logical file sizes; others describe physical container usage. They are not interchangeable.

Apple’s Time Machine local snapshots documentation adds several practical boundaries. On APFS with automatic backups enabled, Time Machine local snapshots are stored on the same disk as the original files, separately from backups on the backup disk. Apple says they are kept for up to 24 hours and removed when space is needed. That retention behavior is useful, but it is not a promise that a particular snapshot will survive until a particular time.

Most importantly, a local snapshot is not a substitute for a backup on another device. If the physical disk fails, a snapshot stored on that same disk does not provide an independent copy.

When cleaning is the wrong next step

If the immediate problem is a failed macOS update, a nearly full startup disk, or a resize operation complaining about APFS limits, do not respond by indiscriminately deleting every snapshot. First preserve any recovery point you may need and make sure a normal backup exists.

If the problem is simply a large Storage category, snapshots are only one branch of the investigation. Developer caches, virtual-machine disks, container images, and ordinary documents can all be substantial. An empty snapshot listing does not clear those folders, and a long snapshot listing does not prove they are the main consumer.

There is also a timing issue: capacity displays and different system tools may not update in perfect lockstep after reclamation. Recheck the same volume with the same command instead of comparing unrelated numbers from Finder, Storage settings, and a container listing.

A defensible cleanup starts with known, regenerable data you understand. Snapshot deletion is a separate operation with recovery and backup consequences, not a general-purpose “make System Data smaller” button.

For a first pass, the three commands above are enough to answer a narrower and more useful question: is the live file tree the whole story, or does APFS still have point-in-time state to account for? Once that is clear, you can investigate the right layer without treating every unfamiliar snapshot as junk.

Published by the DiskBee (磁盘小蜜蜂) team. We build macOS storage tools at ntfs.pro, but the inspection above uses only Apple’s built-in commands and does not require our software.

Top comments (0)