How do I delete Purgeable Space on a Mac?

How do I delete the Purgeable Space on Mac OS?


Mac Studio, macOS 14.1

Posted on Dec 12, 2023 10:10 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 12, 2024 5:41 PM

  1. If you decide to delete all local snapshots at once, run this command:
  2. for d in $(tmutil listlocalsnapshotdates | grep "-"); do sudo tmutil deletelocalsnapshots $d; done

If deleting Time Machine local snapshots didn't help you reclaim much free space, try the method below.

A more efficient way to delete purgeable space on Mac is by making a file that grows until the disk is full and then deleting the file. It's worth mentioning that previous attempts to create an empty file and then duplicate the file until it uses up your Mac's free space to force your operating system to clear purgeable space to store the file no longer works with APFS. 

How to purge Mac hard drive with command lines:

  1. Open Terminal from the Applications folder > Utilities.
  2. Type in the following command and hit Enter.
  3. dd if=/dev/zero bs=100m of=~/Test
  4. This command will create a file named Test that is filled with zeros in your Home directory. The file will grow fast initially and slow down when it's close to full. You will receive notifications warning you, "Your disk is almost full." Just ignore it because it will keep popping up until your disk is completely full.
  5.  When you see the message "No space left on device," execute another command to permanently delete the file.
  6. rm -rf ~/Test


44 replies

Dec 23, 2024 6:14 AM in response to g_wolfman

>APFS is a far more advanced file system than HFS+ was,

It doesn't matter whether it is advanced if there is still no free space after deleting 100GB files and I need upgrade the system or import 60GB database and don't know if I can do it.

And trash is empty, nothing to sync, TM is off and no local snapshots, waited yet 30m. In every operating system I'd been working I was able to control the free space.

Dec 23, 2024 11:01 AM in response to ringspa

ringspa wrote:

sorry no it's just not the case that "waiting" is a solution in all cases - this thread is evidence of that

Sorry, but no. "This thread" actually doesn't exist. It was started over a year ago. Now it's just a place to collect low-qualities replies from people who just want to spout off, but aren't interested in actual solutions and wouldn't attempt any, if offered.


Unfortunately, they will attempt any really bad suggestions. While this site is hosted by Apple, it does suffer from typical internet behaviour to some extent.


One person mentioned that they only waited 30 minutes. But that person isn't you. Whatever is going on with your computer could be wildly different. But if you just go onto the internet searching for something like "storage problem" and try everything posted, you're going to have a long, unpleasant day, or perhaps a week.

Dec 23, 2024 11:17 AM in response to MartinR

With all due regard, I have tried this so many times I lost count and the Mac NEVER NEVER regained any space after a reboot or shutdown and restart. Apple got a weird bug and refuses to admit to it. Run the script I provided. Yes HDD, SDD all have write limits but you would probable have to do the script everyhour of everyday just to knock off a 1% or 2% of writes. I only run it if Pureable is more than 10% of drive space, although 20% would be OK too. And it only takes 1 or 2 write sessions.


Feb 8, 2025 10:56 PM in response to Randalls-MacPro

After hours spent looking for a solution the only way I found was formatting my Hard drive and re install Mac OSX.


This made me remember the good old times of Windows XP when I was re installing the OS every Three weeks.


Apple want to automate everything but is far from perfect and removing manual functions is really a bad idea.


Same with network utility, disk utility and many other functions that Apple removed but is far from solving by automated processes.

Aug 13, 2024 6:23 PM in response to Randalls-MacPro

You (and the others concerned about the size of the purgeable space being report) should understand that manually purging does absolutely nothing except maybe give you a dopamine hit when you see the free space size bump up. Whether Finder or About this Mac is reporting 400 GB or 900 GB free made no difference to the OS and ow it works(how you feel about it might be different of course!).


APFS is a far more advanced file system than HFS+ was, and things like space recovery are so transparent to the user that there is almost no point in even looking at it. Or at least understand that you are looking at it for your own sake and not because it is necessary.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I delete Purgeable Space on a Mac?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.