This guide covers the safe and reliable ways to erase a hard drive (HDD or SSD) before you sell, donate, or recycle a computer. You will learn the difference between deleting files and actually wiping data, the tools you need, and the exact steps for Windows, macOS, and Linux. By the end, you will be able to ensure your personal files are unrecoverable by anyone with basic software.
What You’ll Need
- A computer that still boots to its operating system (or a second computer to create a bootable USB).
- A USB flash drive (8 GB or larger) if you plan to use a dedicated wiping tool.
- Another storage device (external drive or cloud) to back up any files you want to keep.
- Your computer’s power cable and a stable power source—do not rely on battery.
- About 1–3 hours of time, depending on drive size and method.
Step-by-Step
- Back up everything you want to keep. Copy personal files, photos, documents, and any software licenses or product keys to an external drive or cloud service. Double-check that you can open the backups before proceeding.
- Decide on the wiping method. For a traditional hard disk drive (HDD), a single pass of random data is usually enough for most sellers. For a solid-state drive (SSD), use the drive’s built-in Secure Erase command if available, because it is faster and more thorough than overwriting. For maximum security on HDDs, use a tool that performs 3–7 passes.
- If you are selling the whole computer, also plan to reinstall the operating system. Wiping the drive leaves it blank, so you will need a Windows or macOS installer to make the computer usable for the next owner. Download the installer before you wipe.
- For Windows 10/11: use the built-in “Reset this PC” feature. Go to Settings > Update & Security > Recovery (Windows 10) or Settings > System > Recovery (Windows 11). Choose “Reset this PC,” then select “Remove everything.” Click “Change settings” and turn on “Clean data?” (or “Clean the drive?”). This performs a single overwrite pass. Follow the prompts; the computer will restart and take 1–2 hours.
- For macOS: use Disk Utility’s Erase function. Restart your Mac and hold Command+R to enter Recovery Mode. Open Disk Utility, select the internal drive (not the volume), click “Erase,” choose a format (APFS or Mac OS Extended), and click “Security Options.” Drag the slider to “Most Secure” (this overwrites data multiple times). Click Erase. This can take several hours.
- For a more thorough wipe on any system: use a dedicated tool like DBAN (Darik’s Boot and Nuke). Download the DBAN ISO from the official website, use a tool like Rufus (Windows) or Etcher (Mac/Linux) to write it to a USB stick. Boot the computer from the USB (you may need to press F12, F2, or Esc at startup to choose the boot device). Select the drive you want to wipe, choose a method (e.g., “Quick Erase” for one pass, “DOD Short” for three passes), and press F10 to start. Wait until it finishes—this is the most reliable way to wipe an HDD.
- For SSDs: use the manufacturer’s Secure Erase tool. Many SSD makers (Samsung, Crucial, Intel) provide free software that can run a Secure Erase command. If you don’t have that, use the “Reset this PC” method with the clean data option, which also issues a TRIM command that effectively erases SSD data. Avoid multiple overwrite passes on SSDs—they wear out the drive and don’t improve security.
- After the wipe, if you plan to sell the computer with an OS, install the operating system. Boot from your installation USB and follow the prompts. If you are selling the drive separately, you can leave it blank—the buyer will format it themselves.
- Verify the wipe. If you used a wiping tool, it will show a completion message. If you used Reset or Disk Utility, the drive will be empty and ready for OS install. You can also boot from a live Linux USB and try to recover files with a tool like TestDisk—if nothing shows up, the wipe worked.
Common Mistakes
- Only deleting files or emptying the recycle bin. Deleted files remain on the drive until overwritten; anyone with recovery software can restore them.
- Using “Quick Format” on a drive. A quick format only removes the file system pointers, not the data. Always use a full wipe or a dedicated tool.
- Wiping the wrong drive. Double-check the drive letter or model number before starting. Wiping your backup drive instead of the internal one is a real risk.
- Interrupting the wipe. Unplugging the computer or closing the laptop lid during a wipe can leave the drive in an inconsistent state. Let it run to completion.
- Assuming SSDs need multiple passes. Overwriting an SSD multiple times is unnecessary and can shorten its lifespan. Use Secure Erase or a single pass.
Tips
- For maximum peace of mind, physically destroy the drive if it contains highly sensitive data (e.g., financial records, medical info). Drilling holes through the platters or using a drive shredder is the only 100% guarantee.
- If you are selling a laptop, remove the drive and sell it separately if you are unsure about the wipe. This is the safest option.
- For HDDs, a single pass of random data is sufficient for most sellers. The US National Institute of Standards and Technology (NIST) considers one pass adequate for most media.
- Keep a record of the wipe (date, method, serial number) in case a buyer asks.
- If you are donating a computer to a charity, many organizations accept it with a wiped drive and install their own OS. Ask them what they prefer.
Troubleshooting
- The wipe tool doesn’t recognize the drive. Check that the drive is properly connected (SATA or NVMe cable). If the drive is failing, it may not be detected; try a different cable or port. If it still fails, the drive may be physically damaged—consider professional data destruction.
- The computer won’t boot from the USB. Ensure the USB is formatted as FAT32 (for UEFI) and that Secure Boot is disabled in BIOS/UEFI. Check the boot order in BIOS and try a different USB port.
- The wipe process is taking much longer than expected. For large drives (2 TB+), a multi-pass wipe can take 10+ hours. If it seems stuck, check the drive activity light—if it’s blinking, it’s working. If it’s frozen for over 30 minutes, restart and try a different method.
- You accidentally wiped the wrong drive. Stop immediately. Do not write any new data to that drive. Use a recovery tool like Recuva (Windows) or PhotoRec (cross-platform) to attempt recovery. If the drive was fully overwritten, recovery is impossible.
- The “Reset this PC” option is not available. This can happen if the system files are corrupted. In that case, boot from a Windows installation USB, choose “Repair your computer,” then “Troubleshoot,” and use the “Reset this PC” option from there. Alternatively, use DBAN.
Frequently Asked Questions
Is one pass of overwriting enough?
For most modern HDDs, yes. The data density is so high that a single overwrite makes recovery practically impossible with standard tools. For SSDs, a single Secure Erase is sufficient.
Can I just format the drive?
A quick format does not erase data. A full format (unchecking “Quick Format”) does overwrite the entire drive with zeros, which is acceptable for HDDs. For SSDs, use Secure Erase instead.
How long does a secure wipe take?
It depends on the drive size and method. A 1 TB HDD with a single pass takes about 1–3 hours. A 3-pass wipe can take 5–10 hours. SSDs with Secure Erase take only minutes.
Do I need to wipe the drive before selling a Mac?
Yes, for the same reasons as Windows. Use Disk Utility’s Security Options to overwrite the drive. After that, reinstall macOS so the buyer can set it up.
What if my drive is encrypted?
If you used BitLocker or FileVault, simply deleting the encryption key (via the OS settings) makes the data unreadable. You can then do a quick format and sell the drive. This is actually the fastest secure method.
Can I wipe a drive that has bad sectors?
Yes, but the wipe may take longer or fail. If the drive has physical damage, it’s better to destroy it. A wipe tool will report errors; if it can’t complete, the drive is not safe to sell.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Error 0x80070005: Fix Access Denied in Windows
- Backspace Not Working in Windows 10? Fix It
- Fix Windows Server Error 0x80070422
- Limit AI Features & Data Sharing in Apps
- How to Choose a Partition Scheme for Linux
- Python Inheritance and Composition: A How-To Guide