I’ve written an article on how to remove the purgeable portion on a hard disk on MacOS, but in High Sierra, Apple has changed the file system from HFS+ to APFS. Because of that, my old guide doesn’t work. So here is how to remove the Purgeable part of the disk in MacOS High Sierra.

Read this before continuing: Only use this for making more room if you need to change the partition size of your disk. Usually for installing Bootcamp or having multiple partitions on a drive. If you don’t understand the above, don’t do it! The method is not a way of getting more space. That is all handled by the operating system.

APFS – How a Smart File System Can Make Some Things Difficult

Because Apple has changed to a much smarter file system, my old method of creating a file and then duplicate that file until the disk was full, thus forcing MacOS to start to remove the Purgeable portion of the drive doesn’t work anymore. That’s because APFS is smart enough to recognize that it’s the same file, so it makes pointers to the original data, so it doesn’t take up extra space. So here’s how to do it in MacOS High Sierra.

Let’s Fill Up The Disk To The Brim To Remove Purgeable

Open the Terminal application in Applications/Utilities. What we need to do is to start making a file that will grow until the disk is full. So enter the following into the Terminal window:

dd if=/dev/zero of=~/stupidfile.crap

The macOS alert reading Your disk is almost full, offering Close or Manage

The command will create a file called stupidfile.crap in your Home directory and fill it with zeros. It will continue to grow, first at a fast pace, but as the disk gets close too full, it will become slower and slower. But hang in there. During the creation of the file, you will get a lot of warning messages that the disk is full. Just leave it there, because if you close it, it will reappear after a while.

The Disk Is Full, Let’s Continue.

A Terminal window where dd writing zeroes to stupidfile.crap has stopped with No space left on device, after 34.8 GB

When the Terminal window command ends with the message “No space left on device,” the disk is full, and mission accomplished. MacOS should now have removed all the Purgeable space from the drive. So all that is left is to delete the file stupidfile.crap inside your home directory.

Don’t forget to empty the trashcan to regain the space.

You should now have no Purgeable part of the partition left.