What wiping a computer means and why it matters

Wiping a computer means erasing everything on the hard drive or solid-state drive so thoroughly that the data cannot be recovered. This is different from straightforward deleting files or reinstalling the operating system — those leave traces behind that recovery software can still find. A complete wipe removes those traces, making your personal files, passwords, browsing history, and financial information unrecoverable.

You need a complete wipe before you sell, donate, or recycle a computer. Even if you delete your files and create a new user account, someone with basic technical knowledge and the right tools can still pull your old data off the drive. If that computer held banking passwords, tax documents, or medical records, that risk is real.

The method you use depends on your operating system and whether you want to keep the computer usable afterward. Windows, macOS, and Linux each have built-in tools that work well for most situations. If you are selling the computer, you will typically wipe it and then reinstall the operating system so the next owner has a working machine. If you are recycling it, you may wipe it and leave it as-is, or wipe it and remove the drive entirely.

Key Takeaways

  • A complete wipe removes data so thoroughly that recovery software cannot find it, which is necessary before selling or donating a computer.
  • Windows computers can be wiped using Settings > System > Recovery > Reset this PC, which takes 30 minutes to several hours depending on drive size.
  • macOS computers should be wiped using Erase All Content and Settings (newer Macs) or by erasing the drive in Disk Utility and reinstalling the operating system (older Macs).
  • After wiping, reinstall the operating system if you are selling the computer, or physically remove the drive if you are recycling it and want to may support no recovery is possible.
  • Back up any files you want to keep before you start the wipe process, because the wipe cannot be undone.

Backing up your files before you wipe

Before you wipe anything, move every file you want to keep to an external drive, cloud storage, or another computer. Once the wipe starts, you cannot stop it and recover your data — the whole point is that recovery becomes impossible. This step takes the most time if you have years of photos, documents, or projects stored on the computer.

The easiest method is to plug in an external hard drive or USB drive with enough space and drag your Documents, Pictures, Desktop, and Downloads folders onto it. If your files are too large for a single external drive, use cloud storage like Google Drive, OneDrive, or Dropbox to upload them. Make sure the upload finishes completely before you start the wipe.

If you are not sure what files matter, look in these folders: Documents, Pictures, Desktop, Downloads, and any folder you created for work or hobbies. Leave behind the operating system files, program files, and system folders — those will be reinstalled or are not worth keeping.

Wiping a Windows computer

On Windows 10 or Windows 11, the built-in reset tool is the simplest method. Open Settings by pressing the Windows key and typing "Settings", then click the Settings app. Go to System, then scroll down and click Recovery. You will see a button that says "Reset this PC" — click it.

Windows will ask whether you want to keep your files or remove everything. Choose "Remove everything". It will then ask whether you want to remove files and clean the drive. Choose "Remove files and clean the drive" — this is the option that makes recovery harder. Windows will warn you that this takes longer; that is normal and necessary.

The process will restart your computer and take anywhere from 30 minutes to several hours depending on the size of your drive and how fast your computer is. You will see a progress screen. Do not turn off the computer during this time. When it finishes, Windows will ask you to set up the computer as if it were new — create a user account, choose your language, and so on. If you are selling the computer, stop here and let the new owner complete the setup. If you are keeping it, finish the setup yourself.

If you are using Windows 7 or an older version, this built-in reset tool does not exist. Instead, back up your files, then insert a Windows installation disc or USB drive and boot from it. Choose the option to do a clean install, which will erase the drive and reinstall Windows from scratch. If you do not have an installation disc, you can create one on another computer using the Windows Media Creation Tool.

Wiping a macOS computer

On newer Macs (2018 and later with Apple silicon or Intel chips), go to System Settings, click General, then click Transfer or Reset. You will see "Erase All Content and Settings" — click it. macOS will warn you that this cannot be undone and will ask for your Apple ID password. Enter it and let the process run. This typically takes 15 to 30 minutes and will restart your computer.

On older Macs, the process is different. Restart your computer and hold Command + R to boot into Recovery Mode. Click Utilities in the menu bar, then Disk Utility. Select your main drive (usually called "Macintosh HD") and click Erase. Choose a format — APFS for newer Macs, Mac OS Extended for older ones — and click Erase again. This erases the drive completely. Then quit Disk Utility and choose Reinstall macOS from the Utilities menu to reinstall the operating system.

If you are selling the Mac, let the new owner set it up with their own Apple ID. If you are keeping it, you can set it up with your Apple ID once the reinstall finishes. The whole process takes 1 to 3 hours depending on your internet speed and drive size.

Wiping a Linux computer

Linux does not have a built-in graphical wipe tool like Windows and macOS, but you can wipe the drive using the command line. This method is more technical and leaves less room for error, so only use it if you are comfortable with terminal commands.

Boot into a Linux live USB or disc (Ubuntu, Fedora, or another distribution). Open a terminal and use the shred command to overwrite files, or use dd to overwrite the entire drive with zeros. The command sudo dd if=/dev/zero of=/dev/sdX bs=1M will overwrite the drive called sdX — replace X with the correct letter for your drive. This is permanent and cannot be undone, so triple-check the drive letter before you run it.

If you are not comfortable with the command line, the simplest option is to remove the drive entirely and wipe it on another Linux computer, or to take the computer to a local repair shop and ask them to wipe it for you. Many shops charge $20 to $50 for this service.

What to do with the computer after wiping

If you are selling the computer, reinstall the operating system so the next owner has a working machine. For Windows, insert a Windows installation USB or disc and boot from it, then choose "Install Now" and follow the prompts. For macOS, the reinstall happens automatically after the erase. For Linux, boot from a live USB and run the installer. The new owner will then set up their own user account and connect their own files.

If you are donating the computer to a school, library, or nonprofit, wipe it and reinstall the operating system, then leave it ready for the organization to set up. Include any installation discs or USB drives you have, and write down the product key if you have it (though many organizations will use their own licenses).

If you are recycling the computer, you have two options. The safest is to wipe the drive and then physically remove it before you recycle the rest of the computer. You can then destroy the drive yourself by drilling holes through it or taking it to an electronics recycler that specializes in drive destruction. The second option is to wipe the drive thoroughly and recycle the whole computer, trusting that the wipe is complete. Most people choose the first option for computers that held sensitive information.

When to use a third-party wipe tool

For most people, the built-in wipe tools in Windows and macOS are sufficient. They overwrite the drive enough times that recovery is extremely difficult and not worth the cost for a used computer. However, if your computer held highly sensitive information — classified work, financial records, medical data — you may want extra assurance.

Third-party tools like DBAN (Darik's Boot and Nuke) for Windows and Linux, or find Erase for Mac, use military-grade overwriting standards that make recovery virtually impossible even with expensive forensic tools. These tools take much longer (several hours to a full day) and are overkill for most situations, but they exist if you need them.

If you are wiping a computer for a business or government organization, check whether your industry has specific data destruction standards you must follow. Healthcare, finance, and government all have rules about how thoroughly data must be erased. Your IT department or a professional data destruction service can handle this for you.

Frequently Asked Questions

Can I recover my files after I wipe the computer?

Not reliably. A complete wipe overwrites the data so many times that recovery software cannot find it. If you used the "clean the drive" option in Windows or the full erase in macOS, recovery is nearly impossible. This is why you must back up your files before you start.

How long does a complete wipe take?

It depends on your drive size and the wipe method. A basic reset in Windows takes 30 minutes to 2 hours. A full wipe with drive cleaning takes 2 to 6 hours. macOS typically takes 1 to 3 hours. Third-party tools like DBAN can take 8 to 24 hours for a thorough military-grade wipe.

Do I need to remove the hard drive before recycling?

Not if you wipe it thoroughly first. A complete wipe makes the data unrecoverable for practical purposes. However, if the computer held very sensitive information or you want absolute certainty, removing and destroying the drive is the safest option.

What if I forgot to back up my files before wiping?

If the wipe is still in progress, stop the computer when ready and do not restart it. If the wipe is already complete, professional data recovery services may be able to recover some files, but they are expensive (often $500 to $3,000) and success is not may provide. Prevention is much easier than recovery.

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

No. Deleting a user account leaves the files on the drive where recovery software can still find them. A complete wipe must erase the entire drive. If you only want to remove one person's files, delete their user account, then use the built-in wipe tool to clean the free space — but this is less thorough than a full wipe.