How to Wipe a Hard Drive in Windows 11

To wipe the Windows 11 system drive, go to Settings > System > Recovery > Reset PC, choose Remove everything, select Change settings, and turn on Clean data (and Delete files from all drives if you have more than one). To wipe a second hard drive, right-click it in File Explorer, choose Format, and clear Quick Format, which overwrites the drive with zeros.

Applies to: Windows 11. Checked against Microsoft Support on October 9, 2026.

Deleting files or doing a quick format only removes the references to your data; recovery software can often bring it back. The methods below overwrite or encrypt the data so it can’t be recovered easily.

Before you start

  • Back up everything you want to keep and check that the backup opens.
  • Save your BitLocker recovery key if the drive is encrypted, in case you need to unlock it before wiping. See how to find your BitLocker recovery key.
  • Sign out of accounts and deauthorize apps, such as iTunes or Adobe, that limit how many PCs you can use.
  • Disconnect drives you don’t want to erase, including USB drives and external backups.
  • Plug in a laptop. A full clean can take hours.

Wipe the drive Windows is installed on

  1. Open Settings > System > Recovery.
  2. Next to Reset this PC, select Reset PC.
  3. Choose Remove everything.
  4. Choose Local reinstall or Cloud download.
  5. On Additional settings, select Change settings.
  6. Turn on Clean data. This overwrites the drive so files are much harder to recover. Turn on Delete files from all drives if you want other internal drives erased too.
  7. Select Confirm, then Next, review the summary, and select Reset.

When the PC restarts to the first setup screen, you can shut it down and hand it over. The new owner sets it up with their own account. For a full checklist, see how to wipe a Windows 11 PC before selling it.

Wipe a second hard drive (not the Windows drive)

Full format in File Explorer

  1. Open File Explorer and select This PC.
  2. Right-click the drive you want to wipe and choose Format.
  3. Clear Quick Format.
  4. Select Start, then OK to confirm.

A full format writes zeros to the whole volume, which takes a long time on a large drive. For more formatting options, see how to format a hard drive on Windows 11.

Wipe the whole disk with DiskPart

This erases every partition on a disk. Choose the disk number carefully.

  1. Right-click Start and select Terminal (Admin).
  2. Type diskpart and press Enter.
  3. Type list disk. Note the number of the disk you want to erase, using its size to identify it.
  4. Type select disk 1, replacing 1 with your disk’s number.
  5. Type clean all. DiskPart writes zeros to every sector. This can take hours.
  6. Type exit when it finishes, then create a new partition in Disk Management if you want to reuse the drive.

Wipe only the free space

If you’ve already deleted files and want to make sure they can’t be recovered, run cipher /w:D:\ in Terminal, replacing D: with your drive letter. It overwrites the drive’s free space without touching your current files.

SSDs need a different approach

SSDs spread data across memory cells and keep spare areas, so overwriting tools aren’t fully reliable on them. Better options:

  • Use Reset this PC with Clean data, especially if BitLocker or Device encryption was on, because the encrypted data is unreadable without the key.
  • Use the SSD maker’s tool, such as Samsung Magician or Crucial Storage Executive, to run a Secure Erase or Sanitize.
  • Check your PC’s BIOS or UEFI for a built-in secure erase option.

See how to wipe an SSD in Windows 11 for step-by-step instructions.

If something goes wrong

  • “There was a problem resetting your PC”: try Cloud download instead of Local reinstall, or reset from the recovery screen by holding Shift while selecting Restart.
  • The drive asks for a BitLocker key: enter the recovery key from your Microsoft account, or format the drive if you don’t need its data.
  • Format is greyed out for a drive: it’s the Windows drive, or a file on it is in use. Use Reset this PC for the Windows drive.
  • DiskPart says access denied: run Terminal as administrator, and make sure the disk isn’t the one Windows is running from.

Frequently asked questions

Does Reset this PC securely erase my data?

With Clean data turned on, it overwrites the drive, which is enough for most people selling or donating a PC. Without it, files are only removed and may be recoverable.

How long does wiping a hard drive take?

From under an hour to many hours, depending on the drive’s size and speed. Full formats and clean all on large hard drives are the slowest.

Should I physically destroy a drive?

Only for highly sensitive data, or a drive that has failed and can’t be wiped. For ordinary personal use, a proper wipe is enough.

Is it the same in Windows 10?

Very similar. See how to wipe a hard drive in Windows 10.

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy