0

Main goal: Delete specific files without the use of CCleaner and Eraser in the shortest time possible without decreasing the life of a SSD drive.

Here's the thing. I have my C:\ drive and it's an SSD. I can't use Eraser nor CCleaner to clean up the free space because these programs said that it "could" slow down or decrease the lifetime of the SSD. The leftover files are currently around 1GB~ and growing. I've been able to create my own small tool from Java which enables me to locate specific files in my system to overwrite them with nothing.

Would this be a good practice to ensure that none of my files are recoverable assuming that I will no longer need the file then afterwards deleting them from my system through the trash bin?

2 Answers2

0

No. That would not be "good practice" because you are:

  1. Not guaranteed to be writing to the same block as the previous data was stored in, due to the wear leveller in the SSD controller, thus not actually "erasing" your data.
  2. Needlessly writing to the disk and thus meaning that 2 or more flash cells are written and erased rather than just the original one containing the data.

What you want to do is TRIM the disk block where your file is stored in order to tell the SSD controller that this block can be erased.

Windows should naturally TRIM the disk at some defined period, but for tools you should check with your SSD manufacturer. We have a few related questions here:

Mokubai
  • 95,412
0

I disagree with the answer as TRIM does not erase the data, it just allows it to be erased later on - and indeed if cells go bad, data is never actually deleted and some may be recoverable.

I put to you the best way to handle this is to rebuild the partition on an encrypted filesystem (bitlocker / Veracrypt / LUKS). You can then use software to overwrite the files with zeros "in place" (using something like shred or sdelete). This will make sure that the data is really gone when you zero it out because you have virtualised the underlying device such that if the SSD moves data around its moving encrypted blocks.

For maximum benefit, make sure your disk encryption system supports TRIM.

davidgo
  • 73,366