Attempting to save documents, install software updates, or download files in macOS only to receive the dialogue: ‘The operation can’t be completed because the disk is full’ (Error code -34) is confusing when System Settings or Disk Utility indicates tens or hundreds of gigabytes of available storage. This contradiction on modern APFS (Apple File System) formatting typically occurs because macOS categorises certain space as ‘purgeable’, retains invisible Time Machine local APFS snapshots, or encounters exhausted disk inode quotas that prevent writing new directory metadata.
Why Does macOS Report a Full Disk When Free Space Exists?
In macOS Sonoma, Ventura, and Monterey, the storage calculation displayed in Finder represents available space rather than strictly unallocated raw disk blocks. Discrepancies arise due to:
- Accumulated Time Machine Local APFS Snapshots: Time Machine generates read-only block-level point-in-time snapshots on your internal solid-state drive whenever backup drives are disconnected. These snapshots reserve physical storage blocks until cleared.
- Unpurged ‘Purgeable’ Space: The operating system marks caches, iCloud local duplicates, and temporary container files as purgeable, but fails to release physical sectors before write operations time out.
- Exhausted APFS Inode Structure: Creating millions of miniature development files (e.g. nested
node_modulesdirectories or git repositories) can exhaust filesystem inode tables even while gigabytes of raw byte capacity remain. - Runaway Virtual Memory Swap Files: Memory leaks causing the kernel to expand swap files in
/private/var/vm/to extreme sizes, locking the contiguous free space required for large disk allocations.
Step 1: Inspect and Delete Time Machine Local APFS Snapshots
Local snapshots preserve frozen blocks of deleted files. Deleting these snapshots immediately reclaims genuine physical blocks on your Mac’s internal drive.
- Open Terminal from Applications > Utilities (or via Spotlight search).
- List all local APFS snapshots currently stored on the internal volume:
tmutil listlocalsnapshots / - The output will list snapshots in the format:
com.apple.TimeMachine.2026-11-15-120000.local. - Delete each snapshot manually using its timestamp:
tmutil deletelocalsnapshots 2026-11-15-120000 - Alternatively, execute a loop to delete all listed local snapshots automatically:
for d in $(tmutil listlocalsnapshotdates / | grep "-"); do sudo tmutil deletelocalsnapshots $d; done - Check Disk Utility to verify that the purged snapshots immediately reflect as true unallocated physical storage.
Step 2: Force macOS to Release Purgeable Storage
If macOS holds onto gigabytes of purgeable data without releasing it during standard write attempts, you can trigger garbage collection using a temporary dummy allocation.
- Open Terminal.
- Create a temporary dummy file to safely force the APFS garbage collector to purge cached assets:
dd if=/dev/zero of=~/Desktop/purge_trigger.tmp bs=1048576 count=10000 - The command above allocates approximately 10 GB. If successful, macOS will immediately discard purgeable caches to accommodate the new file.
- Once the write completes, delete the temporary dummy file:
rm -f ~/Desktop/purge_trigger.tmp - Empty the Trash to finalize the reclaimed capacity.
Step 3: Clear System Caches and Memory Swap Files
Stale application container caches and runaway virtual memory swap partitions often lock critical filesystem allocation segments.
- In Finder, press Cmd + Shift + G to open the Go to Folder dialogue.
- Navigate to:
~/Library/Caches. - Select and delete oversized temporary folders belonging to web browsers, code editors, and media production applications.
- Restart your Mac. A full reboot terminates memory-leaking processes and flushes the dynamically expanded swap files located inside
/private/var/vm/.
Step 4: Run First Aid via macOS Recovery
Corrupted volume directory structures or mismatched block allocations can trigger premature out-of-space flags from the APFS driver.
- Shut down your Mac completely.
- Boot into macOS Recovery:
- Apple Silicon (M1/M2/M3/M4): Press and hold the power button until ‘Loading startup options’ appears, then select Options > Continue.
- Intel Mac: Turn on your Mac and immediately hold Cmd + R until the Apple logo appears.
- Select Disk Utility and click Continue.
- Click View > Show All Devices.
- Select your internal disk container (e.g. Macintosh HD – Data), click First Aid in the top toolbar, and select Run.
- Allow First Aid to verify filesystem allocation bitmaps, repair extent records, and correct free space accounting.
Purging local Time Machine snapshots, flushing purgeable cache blocks, and verifying APFS volume integrity clears false ‘Disk is Full’ warnings on macOS.