You need to wipe a hard drive completely before selling, donating, or disposing of a PC, and a quick format won’t cut it. The method that works depends on whether you have an HDD or an SSD, so check that first before picking a tool.
HDD or SSD? Pick the right method first
This matters more than anything else in this article:
- HDDs (spinning hard drives): Overwriting every sector with zeros or random data is effective and standard. Any of the five methods below work well.
- SSDs (solid-state drives): Sector-by-sector overwriting from the OS is not recommended. Wear-leveling means some data may survive, and you’re adding unnecessary write cycles. For SSDs, use Method 1 (Windows Reset with “clean the drive”), your drive manufacturer’s secure erase tool, or full-disk encryption followed by key destruction.
If you’re not sure which you have: open Device Manager, expand Disk drives, and search the model number. If it says “SSD” or “NVMe” anywhere, it’s a solid-state drive.
Method 1: Windows Reset, “Remove files and clean the drive” (best for system drives)
This is the right starting point for most people wiping a PC before selling it. It works on both HDDs and SSDs, and Windows handles the appropriate erase method internally.
- Open Settings.
- Go to System → Recovery (Windows 11) or Update & Security → Recovery (Windows 10).
- Under Reset this PC, click Get started.
- Choose Remove everything.
- When prompted, select Remove files and clean the drive, not “Just remove my files.” The second option is the secure wipe; the first is not.
- Click Reset and let the process run. On a large HDD, this can take several hours.

When it finishes, the PC boots into a clean Windows installation with no trace of your personal data.
Important: “Just remove my files” does not securely wipe the drive. A free recovery tool can still retrieve your files afterward. Always choose “Remove files and clean the drive.”
Method 2: Full Format or DiskPart “clean all” (non-system HDDs)
If you’re wiping a secondary HDD, an external drive, or a drive pulled from another PC, not the drive Windows is currently running from, you have two options from within Windows.
Option A: Full format via File Explorer
- Open File Explorer.
- Right-click the drive you want to wipe and choose Format.
- Choose a file system (NTFS for Windows-only use, exFAT for cross-platform).
- Uncheck Quick Format. This is the critical step. A quick format only removes file system metadata and leaves your data fully recoverable.
- Click Start and confirm. Large drives will take a while.

Option B: DiskPart “clean all” (entire disk, including partitions)
This overwrites every sector of the disk with zeros, which is more thorough than a full format, and it removes all partition information too. Use it when you want to hand off a bare drive with nothing on it.
- Right-click Start and choose Windows Terminal (Admin) or Command Prompt (Admin).
- Type
diskpartand press Enter. - Type
list diskand press Enter. Note the disk number of the drive you want to wipe. - Type
select disk X(replace X with your disk number) and press Enter. - Type
clean alland press Enter.

Warning: Double-check your disk number before running
select disk. Selecting the wrong number wipes the wrong drive instantly. Also note: plainclean(without “all”) only removes partition metadata. It does not securely erase data and can be reversed with recovery software.
Method 3: DiskGenius Free, Erase Sectors (GUI tool for non-system drives)
DiskGenius Free is a actively maintained Windows disk management tool with a straightforward Erase Sectors feature. It’s a good choice if you prefer a visual interface over the command line, or if you need to wipe multiple drives with different configurations.
- Download and install DiskGenius Free from diskgenius.com.
- Launch the application and select the target disk in the left pane (select the disk, not just a partition).
- Go to Tools → Erase Sectors.
- Choose a wiping pattern, zeros, random data, or a custom hex value.
- Click Erase, confirm the warning, and wait for it to finish.

DiskGenius also supports running from a WinPE USB, which means you can use it to wipe a system drive offline. This is useful if you want a GUI alternative to ShredOS (Method 4).
Method 4: ShredOS bootable USB (DBAN-style wipe for HDDs)
ShredOS is a small Linux-based bootable image designed specifically for secure disk wiping. Think of it as the modern, actively maintained replacement for DBAN. Use it when you need to wipe a system drive without booting into Windows, or when you’re wiping multiple drives at once on a machine you’re decommissioning entirely.
Note on DBAN: DBAN still gets recommended frequently, but it’s no longer actively developed and doesn’t handle modern SSDs or NVMe drives reliably. ShredOS is the better choice for new hardware.
- Download the latest ShredOS ISO from the ShredOS GitHub page.
- Use Rufus or balenaEtcher to write the ISO to a USB drive.
- Insert the USB into the target PC, restart, and enter your boot menu (usually F12, Esc, or F8 depending on your motherboard).
- Boot from the USB. ShredOS loads automatically.
- Use the arrow keys to highlight the drive you want to wipe, then press Space to select it.
- Choose your wiping method. The default PRNG random data pass is sufficient for most use cases. Multi-pass methods (DoD, Gutmann) add time but rarely add meaningful security on modern HDDs.
- Press Shift+S to start the wipe. Confirm the irreversible warning.

ShredOS shows a progress bar and estimated time remaining. A 1TB HDD with a single-pass wipe typically takes 2–4 hours. Multi-pass methods multiply that time accordingly.
Method 5: Disk Wipe, portable tool for external and secondary drives
Disk Wipe is a free, portable Windows executable with no installation required. It’s well-suited for wiping external HDDs, USB drives, and SD cards from within a running Windows session.
- Download Disk Wipe from diskwipe.org and run the executable directly (no install needed).
- Select the target volume from the drive list.
- Choose an overwrite method. A single-pass zero fill or random data is sufficient for most purposes.
- Click Wipe Disk, confirm the warning, and wait for completion.

Because Disk Wipe runs inside Windows, it can only wipe drives that aren’t the active system drive. For the OS drive, use Method 1 or Method 4 instead.
Special case: SSDs and encrypted drives
If you’re wiping an SSD, avoid multi-pass overwrite tools. Wear-leveling means the controller may redirect writes away from certain cells, leaving remnants behind, and you’re burning through write cycles unnecessarily.
Better options for SSDs:
- Windows Reset with “Remove files and clean the drive” (Method 1): Windows handles SSDs appropriately internally.
- Manufacturer secure erase tools: Samsung Magician, Crucial Storage Executive, and similar tools include a Secure Erase function that uses the drive’s built-in ATA Secure Erase command.
- Cryptographic erase: If the drive was encrypted with BitLocker before you started, turning off BitLocker (which triggers full decryption and key destruction) or using Reset this PC → Remove everything → Remove files and clean the drive effectively renders the data unrecoverable without a full sector overwrite.
- NVMe drives: Use
nvme formatfrom a Linux live USB for a controller-level secure erase.
Wipe only free space (keep your current install)
If you’re not selling the PC, and you just want to make previously deleted files unrecoverable on a drive you’re keeping, use the built-in cipher command instead of a full wipe.
- Open Command Prompt as Administrator.
- Run:
cipher /w:C:\(replaceC:with your target drive letter). - Windows will overwrite all free space with random data. Your existing files are untouched.
This is not a full disk wipe. It only sanitizes the space where deleted files used to live.
Frequently asked questions
Is one pass enough, or do I need 7 or 35 passes?
For modern HDDs, a single full overwrite is sufficient against any realistic recovery attempt. The 35-pass Gutmann method was designed for older drive technologies and adds hours of time with no practical benefit on current hardware. Multi-pass is rarely necessary unless you’re working under specific compliance requirements.
How long will a wipe take?
It depends on drive size and method. A single-pass wipe of a 1TB HDD takes roughly 2–4 hours. Multi-pass methods multiply that. SSDs wipe much faster via secure erase commands. USB 2.0 connections significantly slow down external drive wipes, so use USB 3.0 or better when possible.
Can I wipe the drive Windows is currently running from?
Not from within that Windows session. Use Reset this PC → Remove everything → Remove files and clean the drive (Method 1), or boot from a ShredOS USB (Method 4) to wipe it offline.
Is a factory reset enough?
Windows’ built-in Reset with “Remove files and clean the drive” is sufficient for normal resale. Many OEM factory reset tools only reinstall the OS without overwriting data, so don’t rely on those for secure wiping.
Can data be recovered after a secure wipe?
After a proper full-disk overwrite or secure erase, consumer recovery tools will find nothing. No method is absolutely guaranteed against well-funded forensic labs, but for normal resale and disposal scenarios, these methods are considered irreversible.
What if the drive is physically failing?
If the drive has bad sectors, overwriting may be incomplete. The controller skips unwritable sectors, which may still contain data. If the drive is failing and the data is sensitive, physical destruction (drilling through the platters) is the only reliable option.
Which method should you use?
For most people wiping a PC before selling it, Method 1 (Windows Reset with “Remove files and clean the drive”) is the right answer. It’s built-in, handles both HDDs and SSDs correctly, and requires no extra tools. If you’re wiping a secondary or external HDD, DiskPart clean all (Method 2B) is fast and thorough from the command line, or use DiskGenius Free (Method 3) if you prefer a GUI. For a full offline wipe of any HDD, especially a system drive you can’t reset from within Windows, ShredOS (Method 4) is the most reliable option in 2026.
