What "completely wiping" a hard drive actually means
Completely wiping a hard drive means overwriting all the data on it so thoroughly that recovery software cannot retrieve your files. Simply deleting files or even reformatting the drive leaves data behind — the operating system just marks the space as available, but the actual information remains on the disk until something else writes over it. A complete wipe overwrites that space multiple times with random data, making recovery extremely difficult or impossible.
You need this when you sell, donate, or recycle a computer. It protects against someone using recovery tools to pull your passwords, financial records, photos, or medical information from the drive. The method you choose depends on whether you have a traditional hard drive (HDD) or a solid-state drive (SSD), because they store data differently.
Key Takeaways
- Deleting files or reformatting a drive does not remove the data — you need specialized software or hardware-level tools to overwrite it.
- DBAN (Darik's Boot Negation) is free, works on most computers, and overwrites your entire drive multiple times before you sell or donate it.
- SSDs require different handling than traditional hard drives because of how they store data, and secure erase is faster and more effective.
- You must back up anything you want to keep before you start wiping — the process is permanent and cannot be undone.
- For maximum security, physically destroy the drive if it contained highly sensitive information and you cannot verify the wipe worked.
Traditional hard drives (HDD): using DBAN
DBAN (Darik's Boot Negation) is free software that runs before your operating system loads, so it can access the entire drive. It overwrites every sector with random data multiple times. Download it from dban.org, burn it to a USB drive or DVD using a tool like Rufus (on Windows) or Etcher (on Mac or Linux), then boot your computer from that USB or disc.
When DBAN starts, it shows your drives. Select the one you want to wipe — be absolutely certain, because this cannot be stopped once it begins. Choose the Gutmann method (35 passes) for maximum security, or DoD 5220.22-M (7 passes) if you want it faster. The process takes hours depending on drive size. A 500 GB drive might take 8 to 12 hours with Gutmann; a 1 TB drive could take 24 hours or more.
When it finishes, the drive is blank and ready to sell. The new owner can install a fresh operating system on it. If you plan to keep the computer, you can reinstall Windows, macOS, or Linux after the wipe completes.
Solid-state drives (SSD): using secure erase
SSDs work differently than traditional hard drives — they use flash memory and wear-leveling, which means data is scattered across the drive in ways that make traditional overwriting less effective. Instead, use the drive manufacturer's secure erase tool or the ATA Secure Erase command, which tells the SSD to reset all cells to their factory state.
Most SSD makers provide free tools: Samsung has Samsung Magician, Crucial has Crucial Storage Executive, Kingston has Kingston SSD Manager. Download the tool on another computer, install it on a USB drive, boot from that drive on the computer with the SSD you want to erase, and run the secure erase function. It takes minutes, not hours, and is more reliable than software like DBAN on SSDs.
If you do not know the SSD brand, you can use the open-source tool ShredOS, which includes ATA Secure Erase and works on most SSDs. Download it from ShredOS.org, burn it to USB, boot from it, and select your drive. The process is fast and leaves the drive in a clean state for the next owner.
Built-in operating system tools
Windows 10 and 11 include a reset option under Settings → System → Recovery → Reset this PC. Choose "Remove everything" and select "Remove files and clean the drive" (not just "Remove files"). This overwrites free space and takes longer but is more secure than a standard reset. However, it does not wipe the entire drive — only the parts Windows knows about — so DBAN or manufacturer tools are more thorough.
macOS has Erase All Content and Settings (on newer Macs with Apple Silicon) or Erase Free Space in Disk Utility (on Intel Macs). The Apple Silicon version is secure and fast. For Intel Macs, Erase Free Space is slower but effective. These are reasonable options if you plan to keep the Mac, but if you are selling it, a third-party tool like DBAN gives you more control and certainty.
Linux users can use the shred command to overwrite individual files, or dd with /dev/urandom to overwrite the entire drive. These require command-line knowledge and are not beginner-friendly, so DBAN or manufacturer tools are safer choices.
Steps to wipe your drive safely
Before you start: Back up anything you want to keep on an external drive or cloud storage. The wipe process cannot be reversed. Shut down all running programs and close all files. Disconnect any external drives except the one you are using to run the wipe tool.
For a traditional hard drive: Download DBAN from dban.org. Use Rufus (Windows) or Etcher (Mac/Linux) to write the DBAN image to a USB drive. Insert the USB into the computer you want to wipe. Restart the computer and boot from the USB (usually by pressing F12, Del, or Esc during startup — the key varies by manufacturer). When DBAN loads, select your drive, choose Gutmann or DoD method, and start. Leave the computer running until it finishes. When done, remove the USB and restart.
For an SSD: Download your drive manufacturer's secure erase tool (or ShredOS if you do not know the brand). Write it to a USB drive using Rufus or Etcher. Boot from the USB, select your SSD, and run secure erase. The process finishes in minutes. Remove the USB and restart.
When to physically destroy the drive instead
If the drive contained extremely sensitive information — medical records, financial data, passwords, or trade secrets — and you cannot verify the wipe worked, physical destruction is the safest option. You do not need to do this for a normal personal computer, but it is worth considering for a work laptop or a drive that held business data.
You can remove the drive from the computer yourself (usually a few screws) and take it to an electronics recycler that offers hard drive destruction. They shred or degauss the drive, making recovery impossible. This costs $10 to $30 per drive. Alternatively, you can drill through the platters yourself if you are comfortable opening the drive, though this is messy and requires care not to damage your hands.
For most people selling or donating a personal computer, a software wipe with DBAN or manufacturer tools is sufficient and much faster.
Verifying the wipe worked
After DBAN finishes, the drive shows as blank in the tool's summary. You can verify this by booting the computer without any operating system installed — the screen should show no files, no folders, and no data. If you reinstall an operating system afterward, it will see the drive as empty and ready to use.
For SSDs, the manufacturer's tool confirms when secure erase is complete. The drive returns to factory state, and you can verify by checking the drive's properties in Disk Utility (Mac) or Disk Management (Windows) — it should show as unallocated space with no partitions.
If you want extra confidence, you can run recovery software like Recuva (Windows) or DiskDigger (Mac) on the wiped drive to see if any files are recoverable. If the wipe worked, these tools should find nothing. This is optional but useful if the drive contained sensitive information.
Frequently Asked Questions
Can I wipe a drive while Windows or macOS is running on it?
No. The operating system locks the drive, and the wipe tool cannot access all sectors. You must boot from external media (USB or DVD) so the wipe tool runs before the operating system loads. This is why DBAN and manufacturer tools require you to restart and boot from USB.
How long does it take to wipe a drive?
Traditional hard drives take 8 to 24 hours depending on size and method. SSDs take 5 to 15 minutes with secure erase. Windows or macOS built-in tools take 1 to 4 hours. The Gutmann method (35 passes) is slowest but most thorough; DoD method (7 passes) is faster and still very secure.
Is DBAN safe to use on a computer I want to keep?
Yes, as long as you select the correct drive. If you have multiple drives and you wipe the wrong one, you lose data on that drive. After DBAN finishes, you can reinstall Windows, macOS, or Linux on the wiped drive and use the computer normally.
What if I do not know whether my drive is an HDD or SSD?
On Windows, open Settings → System → Storage and look for "Drive type" — it says HDD or SSD. On Mac, click the Apple menu → About This Mac → Storage and look at the drive name; SSDs usually say "Flash Storage" or have no mechanical description. If unsure, DBAN works on both, though it is slower on SSDs. Manufacturer secure erase is faster if you can identify the brand.
Can I wipe just one partition instead of the whole drive?
DBAN wipes the entire drive, not individual partitions. If you want to wipe only part of a drive, use your operating system's format or erase function on that partition, but know that data recovery is still possible. For complete security, wipe the entire drive.