How to safely delete sensitive files on Windows 11

When you tell Windows to delete a file, you usually want it gone forever. However, some data recovery applications and services can recover those files even if you think they've been completely deleted. So it's important to know how to delete these "sensitive" files completely, permanently, and irrecoverably.

Why “Delete” but not really delete

In fact, when you delete a file on Windows, it doesn't disappear from your system's hard drive immediately. Instead, Windows marks the file's storage space as free, signaling that it may be overwritten by new data in the future. Until that happens, bits of your file remain on the drive, making it relatively easy to recover them with the right tools and knowledge.

Encrypt files to prevent recovery

An easy way to get around this is to encrypt your hard drive or the individual files and folders you want to delete. You can use Bitlocker or third-party apps like Veracrypt to do the job. This won’t prevent someone from recovering the deleted data, but it’s all useless without the decryption key, so it might as well be buried.

How to safely delete sensitive files on Windows 11

Cipher command overwrites free space

Windows has a built-in tool called “Cipher” that will overwrite all free space with random data. This prevents files from being “un-erased”, although it can take a long time if you have a lot of free space, and you also shouldn’t do it on an SSD as it increases wear. Cipher is actually an encryption tool, as the name suggests, but if you use the “/w” switch it will overwrite unallocated space.

All you have to do is open the Command Prompt or Terminal application as administrator and type:

cipher /w:c:

This will overwrite all the free space on your C drive. Change the drive letter as needed. You don't have to do this on the entire drive either, using the full path like "C:\secretstuff" instead will be faster because it will only overwrite things that have been deleted from that folder. Note that this only works on drives using the NTFS file system.

Securely erase entire hard drive

For SSDs, the best way to ensure data cannot be recovered is to use a “secure erase” function. The way SSD wipes work (especially the TRIM command) makes it difficult to recover deleted data, but you can sometimes find a secure erase function for an SSD in your computer’s BIOS, or even better, use software provided by the drive manufacturer.

How to safely delete sensitive files on Windows 11

For example, Samsung's Magician software offers a "secure erase" option. Before using BIOS or other third-party tools to securely erase an SSD, check to see if the manufacturer provides its own official tool for this purpose.

Try Recovery as a test

An essential check after you’ve securely erased your hard drive is to try to recover the files yourself. You can use an application like Recuva to check if any of the files are in a recoverable state. You don’t have to actually perform the recovery, just check to see if the software finds anything.

Sign up and earn $1000 a day ⋙

Leave a Comment

How to fix “Well Need Your Current Windows Password” error on Windows 10/11

How to fix “Well Need Your Current Windows Password” error on Windows 10/11

Are you getting the “We'll need your current Windows password one last time” error? This annoying pop-up can prevent you from getting things done.

Quickly fix Unmountable Boot Volume error on Windows 10/11

Quickly fix Unmountable Boot Volume error on Windows 10/11

The Unmountable Boot Volume error occurs due to some installed software conflicting with the operating system or due to the computer suddenly shutting down,... In the article below, WebTech360 will guide you through some ways to fix this error.

How to Fix Clipboard History Error in Windows 11 Latest Update

How to Fix Clipboard History Error in Windows 11 Latest Update

If you use Clipboard History to store data for later use, there is a small chance that the data will remain empty no matter what you try.

How to remove Copilot and other AI features in Windows

How to remove Copilot and other AI features in Windows

If you don't care about having extra bloatware on your system, there are ways to remove or disable Windows Copilot on Windows 11.

Why is the laptop battery percentage estimate never accurate?

Why is the laptop battery percentage estimate never accurate?

Most laptop users have encountered a situation where Windows shows 2 hours of battery life left, then five minutes later it jumps to 5 hours or even 1 hour. Why does this time jump around like that?

10 Windows 11 settings to maximize laptop battery life

10 Windows 11 settings to maximize laptop battery life

Laptop batteries degrade over time and lose capacity, resulting in less battery life. But after tweaking some deeper Windows 11 settings, you should see a significant improvement in battery life.

Microsoft: PCs running Windows 11 21H2/22H2 will be forced to update to 23H2 next month

Microsoft: PCs running Windows 11 21H2/22H2 will be forced to update to 23H2 next month

Windows 11 version 21H2 is one of the major original releases of Windows 11 that began rolling out globally on October 4, 2021.

Microsoft spams Copilot QR codes on Windows 11 lock screen to lure users

Microsoft spams Copilot QR codes on Windows 11 lock screen to lure users

The year 2023 saw Microsoft betting heavily on artificial intelligence and its partnership with OpenAI to make Copilot a reality.

How to Disable User Accounts on Windows 11

How to Disable User Accounts on Windows 11

You can disable User Accounts so that others can no longer access your computer.

Buying a Windows laptop is harder than ever

Buying a Windows laptop is harder than ever

Is the NPU different enough to delay purchase and wait for the PC Copilot+ to become mainstream?

How to turn on and off battery saving mode on Windows 11 laptop

How to turn on and off battery saving mode on Windows 11 laptop

Windows 11's Battery saver mode is a feature designed to extend laptop battery life.

Microsoft Launches New Sticky Notes App for Windows 11

Microsoft Launches New Sticky Notes App for Windows 11

After keeping things the same for years, the Sticky Note update in mid-2024 changed the game.

How to fix IRQL NOT LESS OR EQUAL error on Windows

How to fix IRQL NOT LESS OR EQUAL error on Windows

The IRQL NOT LESS OR EQUAL error is a memory-related error that typically occurs when a system process or driver attempts to access a memory address without proper access permissions.

6 Ways to Copy File and Folder Paths in Windows 11

6 Ways to Copy File and Folder Paths in Windows 11

Paths are the locations of files or folders in Windows 11. All paths include the folders you need to open to get to a specific location.

Compare Windows 10 and Windows 11

Compare Windows 10 and Windows 11

Windows 11 has officially launched, compared to Windows 10 Windows 11 also has many changes, from the interface to new features. Please follow the details in the article below.