How to Wipe a Hard Drive in Windows 7

How you wipe a hard drive on Windows 7 depends on which drive it is. For a second (non-system) drive, open an administrator Command Prompt and run format D: /fs:NTFS /p:1, which erases the drive and overwrites every sector with zeros. You can’t wipe the drive Windows is running from while Windows is running, so for the main drive, boot from Windows installation media and delete the partitions, or use your PC maker’s recovery tools. For SSDs, use the drive maker’s Secure Erase tool instead of overwriting.

Windows 7 has been unsupported since January 14, 2020. If you’re wiping the PC to retire or sell it, that’s a good time to move to a supported system.

Quick Answer

Second drive: admin Command Prompt > format D: /fs:NTFS /p:1. System drive: boot from installation media and delete or format the partitions, or use a bootable wipe tool.

Before You Start

  • Back up anything you want to keep. Wiping can’t be undone.
  • Note the drive letter carefully in Computer (This PC) or Disk Management.
  • Deauthorize software licenses tied to the PC if needed.

Wipe a Secondary Drive

  1. Click Start, type cmd, right-click it and choose Run as administrator.
  2. Type format D: /fs:NTFS /p:1, replacing D: with the drive you want to wipe.
  3. Type Y to confirm. The zero pass can take hours on large drives.
Command Prompt running format with the /p:1 option to overwrite a secondary drive with zeros
/p:1 writes zeros over every sector.

Wipe the System Drive

  1. Boot from a Windows installation USB or DVD (or a newer Windows version’s media).
  2. Choose Custom installation, delete all partitions on the internal drive, and quit or continue installing a new system.
  3. For a thorough overwrite, use a reputable bootable disk-wipe tool from its official site.

Wiping Methods Compared

Method Best for Notes
Quick format Reusing a drive yourself Data is recoverable
format /p:1 Second hard drives before selling One zero pass is enough for modern drives
cipher /w:D:\ Wiping free space only Keeps existing files
Manufacturer Secure Erase SSDs Overwriting is unreliable on SSDs
Physical destruction Failed drives with sensitive data Use a certified service

Troubleshooting

Frequently Asked Questions

Is one pass enough?

For modern hard drives, a single overwrite is generally considered sufficient.

Does formatting delete everything?

A quick format doesn’t; data can be recovered. Use /p:1 or a wipe tool.

Summary

  1. Back up and identify the right drive.
  2. Use format /p:1 for secondary drives.
  3. Use installation media or a wipe tool for the system drive.
  4. Use Secure Erase for SSDs.