This question already has an answer here:
It's been established that, thanks to our good friend Mr. Wear Leveler, wiping data from an SSD is very difficult. I understand that the one thing you don't want to do is actually attempt to shred files or zero out the drive.
However, what if I wrote some simple program code to get the amount of free space left on an SSD then write a single file full of useless bits to the drive? So, if there are 90 GB of free space, I write a 90-GB file to the SSD. There would be no room to shuffle space around because all of it would be needed.
How would this work?