Deleting a file on an SSD isn’t as straightforward as it looks.
How file deletion actually works (on a hard drive)
the OS only removes the reference (or pointer, in programming lingo) to that file from the file system index.
SSDs don't overwrite data like traditional HDDs
Unlike traditional HDDs, SSDs use NAND flash storage, which organizes data into blocks and pages. This storage structure plays a key role in differentiating how SSDs store and erase data in comparison to HDDs
Can you recover deleted files from an SSD?
your SSD only marks the blocks containing the deleted data as ready for deletion. It's only when the garbage collection process runs that the data is permanently deleted.
Fortunately (or unfortunately, depending on the situation), the garbage collection process typically doesn't take long to run after you delete a file.