How to delete purgeable space detected by Disk Utility

bootcampdisk-utilityhard drivemojavespaces

I am French so I apologize in advance for any possible language errors. I'm running macOS Mojave (version 10.14.2).

Recently, I tried to run Bootcamp because I would like to install Windows. I went through the deletion of many files I didn't need to obtain more than 64 gigs of free space on the disk.

However, now that I would normally have the space to install Windows, Bootcamp tells me that there's not enough space on my disk because "The disk must have at least 40 GB of free space." I've checked Disk Dtility and it shows me there's 95,05 gigs that are purgeable. How to purge them?

I've searched for answers everywhere but it couldn't help me. It appears that the free space detected by the Disk Utility is different from the one shown by the global storage viewer. Pic related :

It appears that the free space detected by the Disk Utility is different from the one shown by the global storage viewer

driveinfo free space analysis
drive info free space analysis

I've also used "diskutil verifyVolume disk1" in terminal :
diskutil verifyVolume disk1 -part 1
diskutil verifyVolume disk1 -part 2

Best Answer

See Traderhut Games' answer from this answer:

In Terminal, run

df -h /

Filesystem      Size   Used  Avail Capacity iused       ifree %iused  Mounted on
/dev/disk1s1   466Gi  370Gi   64Gi    86%    xxxxx   xxxxxxxxx    0%        /

then, for the disk you wish to use, run:

diskutil secureErase freespace 0 /dev/disk1s1