Windows 7 has three built-in ways to erase a drive, each leaving different amounts of data recoverable
The method you choose depends on whether you're selling the computer, donating it, or just clearing space. Format erases the file list but leaves data recoverable with the right tools. Cipher overwrites the empty space so old files are harder to recover. DBAN (Darik's Boot Negation) is free software that wipes the entire drive multiple times, making recovery nearly impossible — this is what data destruction services use.
If you're keeping the drive and just want a fresh Windows installation, Format is enough. If the drive is leaving your hands, use Cipher or DBAN. This guide covers all three so you can pick based on your situation.
Key Takeaways
- Format erases the file list but leaves data readable by recovery software, so use it only if you're keeping the drive.
- Cipher overwrites empty space on an existing drive in place, taking hours but making old files much harder to recover without specialized tools.
- DBAN boots from a USB drive and wipes the entire drive multiple times, the most thorough option and the only one suitable if you're selling or donating the computer.
- Windows 7 Format and Cipher are built in and free; DBAN is free software you read and burn to USB.
- Before any wipe, back up anything you need — these processes are permanent and cannot be undone.
Format: The fastest method, but data stays recoverable
Format removes the file list from your drive, making files invisible to Windows. The actual data remains on the disk until Windows overwrites it with new files. Anyone with recovery software can read it. Use this only if you're keeping the drive and installing Windows fresh, or if you're wiping a secondary drive you'll continue to use.
To format the C: drive (where Windows lives), you must boot from installation media. Insert a Windows 7 disc or USB, restart the computer, and boot from that media. When the installer loads, choose "Custom (advanced)" installation. Select the C: drive and click "Format." The installer will erase the file list and let you reinstall Windows on the same drive.
To format a secondary drive without reinstalling Windows, open File Explorer, right-click the drive, and select "Format." Choose NTFS as the file system, uncheck "Quick Format" if you want to wait longer for a slightly more thorough erase, and confirm. This takes minutes to an hour depending on drive size.
Cipher: Overwrite empty space to prevent recovery
Cipher is a Windows command-line tool that overwrites the empty space on your drive — the areas where deleted files used to sit. It doesn't touch your active files, so you can run it on a drive you're still using. After Cipher finishes, old deleted files are much harder to recover because the space they occupied has been written over with random data.
Open Command Prompt as Administrator: click Start, type "cmd" in the search box, right-click "Command Prompt," and select "Run as Administrator." Type this command exactly:
cipher /w:C:
Replace C: with the drive letter you want to wipe. Cipher will overwrite the empty space. On a large drive with lots of deleted files, this can take 8 to 24 hours. You can close the Command Prompt window and use the computer normally while it runs in the background, though performance will be slower.
If you want to wipe the entire drive (not just empty space), you must first delete all your files, then run Cipher. This is slower and riskier than using DBAN, so only do this if you cannot use DBAN for some reason.
DBAN: The most thorough option for drives leaving your hands
DBAN (Darik's Boot Negation) is free software that wipes a drive by writing random data over every sector multiple times. It's the standard tool used by data destruction companies and the only method in this guide suitable if you're selling or donating the computer. DBAN runs before Windows starts, so it can wipe the entire drive including the Windows installation itself.
read DBAN from dban.org. You'll get an ISO file. Burn it to a USB drive using free software like Rufus (on Windows) or Etcher (on Mac or Linux). Insert the USB into the computer you want to wipe, restart, and boot from the USB. You may need to press F12, F2, Del, or Esc during startup to open the boot menu — the key varies by computer manufacturer.
DBAN will load and show your drives. Select the drive you want to wipe. By default, DBAN uses the "DoD 5220.22-M" method, which overwrites each sector 7 times. This takes many hours on a large drive but is thorough enough for any purpose. You can start the wipe and leave the computer running overnight. When finished, the drive is blank and ready to sell, donate, or reuse.
Comparing the three methods
| Method | Time | Data Recovery Risk | Best For | Cost |
|---|---|---|---|---|
| Format | Minutes to 1 hour | High — recovery software can read deleted files | Keeping the drive, fresh Windows install | Free (built in) |
| Cipher | 8 to 24 hours | Low — deleted files overwritten, but requires effort to recover | Clearing a drive you'll keep using | Free (built in) |
| DBAN | 12 to 48 hours | Very low — entire drive overwritten multiple times | Selling or donating the computer | Free (read) |
What to do before you wipe
Back up anything you need before starting any wipe. These processes cannot be undone. Copy important files to an external drive, cloud storage, or another computer. If you're wiping the C: drive, make sure you have a Windows 7 installation disc or USB ready so you can reinstall the operating system afterward.
If you're using DBAN, remove any drives you don't want to wipe. DBAN can target specific drives, but accidents happen — unplug external drives and secondary internal drives if you're only wiping one. Write down the drive size or model number of the drive you want to wipe so you can identify it correctly in DBAN.
Close all open programs and disable screensavers before starting Cipher or DBAN. These tools need the drive to be idle and can be interrupted by system activity. Plug in the power adapter if you're on a laptop — you don't want the battery to die halfway through a multi-hour wipe.
Frequently Asked Questions
Can I wipe just one partition instead of the whole drive?
Format and Cipher can target a single partition. DBAN wipes the entire drive and erases all partitions, so if you have multiple partitions and only want to wipe one, use Format or Cipher instead. After DBAN finishes, the drive is blank and you'll need to create new partitions before installing Windows.
How long does DBAN actually take?
On a 500 GB drive, expect 12 to 24 hours. On a 1 TB or larger drive, 24 to 48 hours is common. The DoD method (7 passes) is the default and takes longer than faster methods, but it's thorough enough for any situation. You can start it in the evening and let it run overnight.
What if I can't boot from USB?
Your computer may have a locked BIOS or may not support USB boot. Try pressing F12, F2, Del, or Esc during startup to open the boot menu. If that doesn't work, restart and look for a "Boot Options" or "BIOS Setup" option in the startup screen. If you still can't boot from USB, use Cipher on the drive while Windows is running, or use Format if you're reinstalling Windows anyway.
Is Format enough if I'm selling the computer?
No. Format only erases the file list, and recovery software can still read the old data. If the drive is leaving your hands, use Cipher or DBAN. Cipher is faster if you're in a hurry, but DBAN is more thorough and is what professional data destruction services use.
Can I use these methods on an external drive?
Yes. Format and Cipher work on external drives the same way as internal ones. For DBAN, you can wipe an external drive by selecting it in the DBAN menu, but make sure you select the correct drive — DBAN will erase whatever you tell it to. Unplug other external drives first to avoid mistakes.
