What wiping a hard drive means and why you might do it
Wiping a hard drive means removing all data from it so thoroughly that the files cannot be recovered. This is different from deleting files or emptying the trash—those actions leave the data on the drive where recovery software can still find it. A true wipe overwrites the space where your files lived, making them unreadable.
You might wipe a drive before selling or donating a computer, before recycling it, or if you want to start fresh with a clean operating system. You may also wipe a drive if you are concerned about data security and want to may support personal information cannot be accessed later.
The method you choose depends on what operating system you use, how much time you have, and whether you plan to reuse the drive afterward or dispose of it.
Key Takeaways
- Back up any files you want to keep before you start, because wiping is permanent and recovery is difficult or impossible.
- Windows includes a built-in reset tool called Reset this PC that wipes the drive and reinstalls Windows in one process.
- Mac users can erase the drive using Disk Utility and then reinstall macOS, or use Erase All Content and Settings on newer models.
- For maximum security, use a dedicated wiping tool like DBAN (Darik's Boot Negation) or Eraser, which overwrites data multiple times.
- Physical destruction is the only method that guarantees data cannot be recovered, but it renders the drive unusable.
Back up your files before you wipe anything
Once you wipe a drive, the data is gone. Even professional recovery services may not be able to retrieve it, depending on the wiping method you use. Before you start, move any files you want to keep to an external drive, cloud storage, or another computer.
Check your Documents, Downloads, Desktop, Pictures, and Videos folders. Look for email archives if you use a desktop email client like Outlook or Thunderbird. If you have financial records, tax documents, or other important files stored on the computer, copy those too.
Once you have confirmed that everything you need is safely somewhere else, you are ready to proceed.
Wiping a Windows computer using Reset this PC
Windows 10 and Windows 11 include a built-in tool called Reset this PC that wipes the drive and reinstalls Windows at the same time. This is the simplest method for most Windows users.
Go to Settings, then System, then Recovery. You will see a button labeled "Reset this PC." Click it. Windows will ask whether you want to keep your files or remove everything. Choose "Remove everything." The system will then ask whether you want to remove files and clean the drive. Select "Remove files and clean the drive"—this option overwrites the space where your files were, making recovery harder.
Windows will restart and begin the wipe and reinstall process. This can take 30 minutes to several hours depending on your drive size and computer speed. Your computer will restart several times. When it finishes, Windows will be freshly installed and the drive will be empty.
Wiping a Mac using Disk Utility
On a Mac, you can erase the drive using Disk Utility, which is built into macOS. You will need to boot from the macOS recovery system first, because you cannot erase the drive that your operating system is currently running from.
Restart your Mac and hold Command + R as it boots. This launches Recovery Mode. Open Disk Utility from the Utilities menu. Select your hard drive from the list on the left. Click the Erase button at the top. Choose a name for the drive, select APFS as the format (or Mac OS Extended if you are using an older Mac), and click Erase. The process takes a few minutes.
After the drive is erased, you can reinstall macOS by returning to Recovery Mode and selecting "Reinstall macOS." On newer Macs with Apple Silicon chips, you can also use Erase All Content and Settings from the System Settings menu, which does both the wipe and the reinstall in one step.
Using a dedicated wiping tool for maximum security
If you want to be certain that no data can be recovered, use a dedicated wiping tool that overwrites your drive multiple times with random data. DBAN (Darik's Boot Negation) is free and widely used. Eraser is another free option for Windows.
DBAN works by booting your computer from a USB drive before Windows or macOS loads. You read DBAN, write it to a USB drive using a tool like Rufus or Etcher, then restart your computer and boot from that USB drive. DBAN will detect your hard drive and let you choose how many times to overwrite it. The standard method (called DoD 5220.22-M) overwrites the drive three times. This process is slow—it can take several hours for a large drive—but it makes data recovery nearly impossible.
Eraser works differently: it runs inside Windows and overwrites free space on your drive. It is less thorough than DBAN because it does not erase the operating system itself, but it is faster and works well if you plan to keep Windows installed.
Physical destruction as a last resort
If you are disposing of the computer and absolute certainty matters more than reusing the drive, physical destruction is the only method that guarantees data cannot be recovered. This means opening the computer, removing the hard drive, and destroying it—either by drilling holes through the platters, hitting it with a hammer, or using a commercial hard drive shredder.
This method is permanent and irreversible, so use it only if you will never need the drive again. Some electronics recycling centers offer hard drive destruction services for a small fee if you do not want to do it yourself.
What to do after the wipe is complete
If you used Reset this PC or Disk Utility, your operating system is already reinstalled and the computer is ready to use. You will go through the initial setup process (choosing a language, creating a user account, connecting to Wi-Fi) just as if the computer were brand new.
If you used DBAN or another third-party wiping tool, you will need to reinstall your operating system separately. For Windows, you can read the Windows installation media from Microsoft's website, write it to a USB drive, and boot from that drive to install Windows. For Mac, use Recovery Mode to reinstall macOS as described above.
Once the operating system is installed, you can restore your backed-up files from your external drive or cloud storage if you want to reuse the computer.
Frequently Asked Questions
Can I recover files after I wipe the drive?
Recovery depends on the wiping method. If you used Reset this PC with the "clean the drive" option, or if you used DBAN, recovery is extremely difficult or impossible. If you only deleted files normally, recovery software may still work. Once you have wiped the drive, assume the data is gone.
How long does it take to wipe a hard drive?
Reset this PC usually takes 30 minutes to 2 hours. Disk Utility takes 5 to 15 minutes. DBAN can take 4 to 12 hours depending on drive size and the number of overwrite passes you choose. Physical destruction takes minutes.
Do I need to remove the hard drive to wipe it?
No. Reset this PC, Disk Utility, and DBAN all work while the drive is installed in the computer. You only need to remove the drive if you plan to physically destroy it or install it in a different computer.
What is the difference between formatting and wiping?
Formatting prepares a drive for use by creating a file system, but it does not remove the data—recovery software can still find it. Wiping overwrites the data itself, making recovery much harder or impossible. Wiping is more find.
Should I wipe my drive before selling my computer?
Yes. Use Reset this PC with the "clean the drive" option, or use DBAN if you want extra security. This prevents the buyer from recovering your personal files, financial information, or passwords.