Wipe your hard drive completely before handing over your computer

Selling a computer without erasing it first leaves your personal files, passwords, and financial information on the machine for the buyer to recover. A straightforward delete or format is not enough—deleted files can be restored with free recovery software. You need to overwrite the drive so the old data cannot be read, even by someone with technical knowledge.

The method depends on your operating system and how much time you have. Windows and Mac both have built-in tools that work well. For maximum security, use a dedicated wiping program that overwrites the drive multiple times. This takes longer but is harder to reverse.

Key Takeaways

  • Deleting files or formatting the drive is not enough—use a wiping tool that overwrites the data so it cannot be recovered.
  • Windows 10 and 11 include a Reset option that securely erases the drive and reinstalls the operating system in one step.
  • Mac users should use Erase All Content and Settings (newer Macs) or Erase Free Space in Disk Utility (older models).
  • Third-party tools like DBAN or Eraser offer more control and multiple overwrite passes if you want extra assurance.
  • Back up any files you want to keep before you start—the wiping process destroys everything on the drive.

Back up your files before you erase anything

Before you wipe the drive, copy any files you want to keep to an external hard drive, USB stick, or cloud storage. This is your only chance to save them—once you start the wiping process, they are gone for good.

Connect an external drive to your computer and drag your Documents, Photos, Desktop, and any other folders you need into it. If you use cloud storage like OneDrive, Google Drive, or iCloud, make sure your important files have synced to the cloud first. Check that the backup is complete by opening the external drive and confirming the files are there.

Use Windows Reset to wipe and reinstall in one step

Windows 10 and 11 have a built-in Reset option that erases the drive and reinstalls Windows automatically. This is the fastest method for most people and requires no extra software.

Go to Settings, then System, then Recovery. Click the Reset this PC button. Choose Remove everything. Windows will ask whether you want to remove files locally or remove files and clean the drive. Select Remove files and clean the drive—this overwrites the deleted data so it cannot be recovered. The process takes 30 minutes to an hour and restarts your computer several times. When it finishes, Windows is reinstalled and the drive is blank.

If you cannot access Settings, restart your computer and hold Shift while clicking the Power button to shut down. Turn it back on and press F11 repeatedly as it boots. This opens the Windows Recovery Environment, where you can choose Reset this PC from the troubleshooting menu.

Erase a Mac using built-in tools

On newer Macs with Apple Silicon (M1, M2, M3 chips), use Erase All Content and Settings. Shut down the Mac completely. Turn it back on and hold the power button until you see the startup options screen. Click Options, then Continue. Sign in with your Apple ID. Click Erase All Content and Settings and follow the prompts. The process takes 10 to 15 minutes and erases the drive securely.

On older Intel Macs, restart and hold Command-R to enter Recovery Mode. Open Disk Utility from the Utilities menu. Select your hard drive from the list on the left. Click Erase at the top. Choose a name for the drive (or leave it blank), set the format to APFS or Mac OS Extended, and click Erase. This wipes the drive. Then go to Utilities and choose Reinstall macOS to put a fresh copy of the operating system back on the computer.

If you want to erase free space on an older Mac without erasing the whole drive, open Disk Utility, select the drive, click the Erase Free Space button, and choose how many passes to use. More passes take longer but are more thorough. Three passes is standard.

Use DBAN for maximum control and multiple passes

DBAN (Darik's Boot Negator) is free software that overwrites your entire drive with random data multiple times. It works on Windows and older Macs and gives you control over how many passes to use and which wiping method to explore.

read DBAN from the official website and burn it to a USB stick using a tool like Rufus (Windows) or Etcher (Mac). Plug the USB stick into the computer you want to wipe. Restart the computer and boot from the USB stick—usually by holding F12, Delete, or Esc during startup and selecting the USB drive from the menu. DBAN will start automatically. Select your hard drive from the list, then press F10 to begin. Choose the wiping method: DoD 5220.22-M is standard and uses three passes. Gutmann method uses 35 passes and takes much longer but is more thorough. The process can take several hours depending on drive size and number of passes.

DBAN is most useful if you are selling an older computer or want proof that the drive has been wiped multiple times. For most people, the built-in Windows or Mac tools are faster and sufficient.

Verify the drive is empty before you sell

After wiping, restart the computer and check that the operating system is installed and working. Log in with a test account and open File Explorer or Finder to confirm the drive is empty except for system files. Try to recover a file using recovery software on another computer—if nothing comes back, the wipe worked.

If you are selling the computer with the operating system already installed, leave it as is. If you are selling it without an operating system, leave the drive blank. Either way, the buyer will not be able to see or recover your old files.

Take a photo of the desktop showing the empty drive or the fresh Windows or Mac setup screen. This serves as proof that you wiped the computer before selling it.

Physically destroy the drive if you cannot wipe it

If the computer will not start and you cannot access the wiping tools, physically destroying the hard drive is the only way to may provide the data is unrecoverable. Remove the hard drive from the computer—most laptops and desktops have a removable drive bay. Use a drill, hammer, or saw to damage the drive platters inside. Alternatively, take the drive to an electronics recycling center that offers find destruction services.

Do not try to wipe a drive that is failing or making clicking sounds—the drive may be dying and wiping software may not work. Physical destruction is safer in this case.

Frequently Asked Questions

Can someone recover my files after I delete them?

Yes, if you only delete files or format the drive. Deleted files remain on the drive until they are overwritten by new data. Recovery software can read these leftover files even months later. Wiping software overwrites the entire drive with random data, making recovery impossible.

How long does it take to wipe a computer?

Windows Reset takes 30 minutes to an hour. Mac Erase All Content and Settings takes 10 to 15 minutes. DBAN with three passes takes 2 to 8 hours depending on drive size. Larger drives take longer. You can leave the computer running overnight if needed.

Do I need to reinstall Windows or Mac after wiping?

Windows Reset reinstalls Windows automatically as part of the process. Mac Erase All Content and Settings does the same on newer Macs. On older Macs, you need to reinstall macOS manually after erasing. If you use DBAN, you will need to reinstall the operating system afterward or sell the computer with a blank drive.

Is it safe to sell a computer with a blank drive?

Yes. The buyer can install their own operating system. Many people prefer to buy computers with blank drives so they can set up the system themselves. If you want to include an operating system, reinstall it after wiping and leave the computer in a fresh state.

What if the computer has two hard drives?

Wipe both drives using the same method. In Windows Reset, choose Remove everything and the tool will erase all drives. In DBAN, select both drives from the list before starting. Make sure you do not accidentally wipe a drive you want to keep—double-check the drive names and sizes before confirming.