Wipe your hard drive completely before you recycle or sell your computer

Before you hand over your computer to a recycler or sell it to someone else, you need to erase everything on it—not just delete files. Deleting files leaves them recoverable on the hard drive. Wiping overwrites the entire drive with random data so the old files cannot be recovered, even with specialized software. This protects your passwords, financial records, photos, and any other personal information stored on the machine.

The method you use depends on whether your computer runs Windows, macOS, or Linux, and whether it has a traditional hard drive or a solid-state drive (SSD). The good news is that each operating system includes a built-in tool to do this safely, and the process takes a few hours at most.

Key Takeaways

  • Deleting files does not remove them from your hard drive; you must use a dedicated wiping tool to overwrite the data so it cannot be recovered.
  • Windows computers use the Reset This PC feature (Settings > System > Recovery), and macOS computers use Erase Mac (System Settings > General > Transfer or Reset).
  • Back up any files you want to keep before you start wiping, because the process erases everything on the drive.
  • The wipe process can take several hours depending on drive size and speed, so plan to leave your computer running unattended.
  • After wiping, your computer will restart with a fresh operating system or a blank drive ready for the next owner to set up.

Back up your files before you wipe anything

The wiping process erases everything on your computer, including files you might want to keep. Before you start, copy any documents, photos, videos, or other data you need to an external hard drive, USB flash drive, or cloud storage service like Google Drive, OneDrive, or Dropbox.

If you are selling the computer and want the new owner to have a fresh start, you do not need to back anything up. If you are keeping the computer for yourself and only want to erase personal data, back up first, then wipe, then restore only the files you want to keep.

Wipe a Windows computer using Reset This PC

Windows 10 and Windows 11 both include a built-in reset tool that wipes the drive and reinstalls the operating system. Open Settings by pressing the Windows key and typing "Settings," then select System from the left sidebar. Click Recovery, then click Reset This PC.

You will see two options: "Keep my files" and "Remove everything." Choose "Remove everything" to wipe the entire drive. Windows will ask whether you want to remove files locally or remove files and clean the drive. Select "Remove files and clean the drive" for a more thorough erase that overwrites the space where files were stored.

Windows will then ask you to choose between reinstalling Windows or removing everything without reinstalling. If you are recycling the computer, choose "Remove everything." If you are selling it and want the new owner to have Windows, choose "Reinstall Windows." The process takes one to three hours depending on your drive size and speed. Your computer will restart several times during the process.

Wipe a Mac using Erase Mac

macOS Monterey and newer versions include an Erase Mac feature that wipes your drive and reinstalls the operating system. Click the Apple menu in the top left corner, select System Settings, then click General. Look for Transfer or Reset on the left sidebar and click it, then click Erase All Content and Settings.

Your Mac will ask you to sign in with your Apple ID. This step confirms that you own the computer and prevents someone else from erasing it remotely. After you sign in, macOS will show you a summary of what will be erased. Click Continue, then click Erase to begin.

The process takes 30 minutes to two hours. Your Mac will restart and begin reinstalling macOS. When it finishes, your Mac will show the initial setup screen, ready for a new user to configure it.

If your Mac is older and does not have the Erase Mac feature, use Disk Utility instead. Restart your Mac and hold Command + R to enter Recovery Mode. Click Utilities in the menu bar, then Disk Utility. Select your main drive, click Erase, choose a format (APFS for newer Macs, Mac OS Extended for older ones), and click Erase again.

Wipe a solid-state drive (SSD) thoroughly

SSDs work differently from traditional hard drives, and standard wiping tools may not be as effective. If your computer has an SSD, the reset tools in Windows and macOS still work, but you can add an extra layer of security by enabling the TRIM command, which tells the drive to permanently mark old data as unusable.

Windows enables TRIM automatically on SSDs. On a Mac, TRIM is enabled by default on Apple-branded SSDs. If you want to be extra cautious with an SSD, you can use the manufacturer's own wiping tool. Samsung, Crucial, Intel, and other SSD makers offer free software that securely erases their drives. Visit the manufacturer's website, read the tool, and follow their instructions.

What to do after the wipe is complete

After the wiping process finishes, your computer will either show the initial setup screen (if the operating system was reinstalled) or a blank screen (if you chose to remove everything without reinstalling). At this point, the drive is clean and ready to recycle or sell.

If you are recycling the computer, take it to an e-waste recycler or a retailer that accepts old electronics. Best Buy, Staples, and local recycling centers accept computers for free or a small fee. If you are selling it, you can list it online or give it to someone you trust. The new owner will see the setup screen and can configure the computer as if it were brand new.

Keep a record of the serial number or model number in case you need to prove you owned the computer. You do not need to keep anything else—the wiped drive contains no trace of your personal data.

When to call a professional

The built-in reset tools handle most situations, but a few cases warrant professional help. If your computer will not start, has a damaged hard drive, or is so old that it does not have a built-in reset feature, a local computer repair shop can wipe it for you. The cost is usually $50 to $150.

If you are unsure whether your computer has an SSD or a traditional hard drive, or if you are not comfortable using the reset tools, a technician can handle the wipe and answer your questions about the process. This is especially useful if you are selling an expensive computer and want to be certain the data is gone.

Frequently Asked Questions

Can I recover files after I wipe my computer?

No. Once you use the built-in reset tools in Windows or macOS, the data is overwritten and cannot be recovered, even with specialized software. This is why you must back up any files you want to keep before you start the wipe process.

How long does it take to wipe a computer?

The time varies by drive size and speed. A 256 GB SSD might take 30 minutes to an hour, while a 1 TB traditional hard drive can take two to four hours. Larger drives take longer. Plan to leave your computer running unattended during the process.

Do I need to remove the hard drive before recycling?

No. If you use the built-in reset tools, the drive is wiped and safe to recycle with the computer. If you prefer extra security, you can remove the hard drive and destroy it physically, but this is not necessary if you have wiped it thoroughly.

What if I forget my Windows password before wiping?

You can still access Reset This PC without entering your password. On the login screen, click "I forgot my password," then follow the prompts to reset it using a recovery email or phone number. Once you regain access, you can proceed with the wipe.

Can I wipe just one user account instead of the whole computer?

No. The reset tools wipe the entire drive and all user accounts. If you only want to remove one account, you can delete it from Settings without wiping the drive, but this leaves your personal files on the computer. For complete data removal before recycling or selling, you must wipe the entire drive.