You’ve been deleting files the wrong way in Windows

Configurare noua (How To)

Situatie

Most people assume that deleting files and emptying the Recycle Bin permanently removes them—but that’s not true. Those “deleted” files still sit on your drive and can be restored with recovery tools.

Solutie

How to set up sDelete for the first time

sDelete isn’t included with Windows by default, so you’ll need to download it manually. Head to Microsoft’s Sysinternals website, download the sDelete ZIP file, save it to your PC, and extract it to C:\Program Files. Next, type View advanced system settings, open the matching result, switch to the “Advanced” tab, and click “Environment Variables”.

Settings up sDelete in Windows.

Under System Variables, select the “Path” entry and click “Edit”. Choose “New” to add a fresh line, then click “Browse” to select a folder. Navigate to C:\Program Files, select the extracted sDelete folder, and confirm with “OK.” This updates your system’s PATH and completes the basic setup for sDelete.

How to use sDelete to erase files permanently

Since sDelete is a command-line utility, you can use it through Command Prompt. Open Command Prompt as administrator, type sdelete, and press Enter. You’ll see the available parameters you can use for secure deletion and disk cleanup. The first time you launch it, a License Agreement will appear—just click “Agree” to proceed.

Command Prompt showing the sDelete parameters and their action.

To securely delete a file with sDelete, first copy its full file path. Navigate to the folder containing the file, right-click it, and select “Copy as Path.” Then, open Command Prompt, type sDelete followed by the full path (including the file extension), and press Enter. For example, to delete a file named HTG.txt, type sDelete, paste the path, and hit Enter—the file will be securely deleted.

Deleting a file using the sDelete command in the Command Prompt app.

To delete an entire folder along with its subdirectories and any read-only files, use the -s and -r parameters before the folder path:

sDelete -s -r

This command will display the number of directories and files that were deleted.

Deleting a folder having two files in it using sdelete command in Command Prompt.

By default, sDelete overwrites space once to make recovery more difficult. To increase the number of overwrites, use the -p parameter followed by the desired number. For example, to delete a folder with all subdirectories and read-only files while overwriting four times, use:

sDelete -s -r -p 4
Using sDelete file with four passes in the Command Prompt.

Other ways to securely wipe SSDs besides sDelete

You can rely on sDelete to securely wipe sensitive files on a drive you’ll continue using—especially if it’s a Hard Disk Drive (HDD). For Solid State Drives (SSDs), though, the safest method is to enable full-drive encryption with BitLocker and then securely remove the encryption keys, which makes all previously stored data inaccessible.

If you’re planning to sell or hand your PC over, it’s better to use Windows’ built-in reset tool. Right-click the Start button, open “Settings,” then navigate to System > Recovery. Click “Reset PC,” choose “Remove Everything,” and follow the prompts to securely wipe all your data.

Reseting a Windows PC by removing everything through the Settings app.

If you once believed that deleting a file completely removes it from your drive, you now know that’s not the case. sDelete is a powerful solution, but it doesn’t need to be used for every deletion—reserve it for sensitive files. Also, keep in mind that files deleted with sDelete cannot be recovered, even with advanced recovery tools. So you could end up losing data if you delete a file by mistake.

Tip solutie

Permanent

Voteaza

(8 din 13 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?