What wiping your computer means and when you need to do it

Wiping a computer means erasing everything on the hard drive or solid-state drive — all your files, programs, settings, and the operating system itself. When you wipe a machine, it goes back to the state it was in before you ever turned it on. This is different from deleting files or emptying the recycle bin, which leaves data behind that can sometimes be recovered.

You might wipe a computer before selling it, giving it away, or recycling it so that your personal information stays private. You might also wipe it if the machine has become so slow or corrupted that a fresh start is the fastest fix. A wipe is permanent — once it is done, the files are gone for good, so back up anything you want to keep before you start.

Key Takeaways

  • Back up all your files to an external drive or cloud storage before you wipe, because wiping erases everything and cannot be undone.
  • Windows computers use the Reset This PC tool, found in Settings under System, and the process takes 30 minutes to several hours depending on your machine.
  • Mac computers use Erase and Reinstall from System Settings, which wipes the drive and reinstalls macOS in one process.
  • After wiping, your computer will restart and ask you to set up the operating system as if it were brand new, including creating a user account and password.
  • If you cannot access the operating system or the computer will not start, you may need to wipe it from a bootable USB drive or recovery partition instead.

Back up your files before you start

Before you wipe anything, move every file you want to keep to an external hard drive, USB flash drive, or cloud storage service like OneDrive, Google Drive, or iCloud. This includes documents, photos, videos, music, and any other personal files. Do not rely on memory — go through your Desktop, Documents, Downloads, and Pictures folders, and check any external drives you have connected.

If you use cloud storage already, make sure your files have actually synced to the cloud and are not just stored locally on your computer. Open the cloud service on your computer and confirm that your folders show a checkmark or sync icon. If you are unsure, copy the folders manually to an external drive as a second backup.

You do not need to back up your programs — you can reinstall them after the wipe if you need them. However, if you have custom settings, templates, or data inside a program (like a list of email accounts in Outlook), export that data first. Most programs have an Export or Backup option in the menu.

Wipe a Windows computer using Reset This PC

On Windows 10 or Windows 11, the easiest way to wipe your computer is through the built-in Reset This PC tool. Open Settings by pressing the Windows key and typing "Settings," then click the Settings app. Go to System on the left side, scroll down, and click Recovery.

Under the Recovery section, you will see a button that says "Reset this PC." Click it. Windows will ask you whether you want to keep your files or remove everything. Choose "Remove everything" to wipe the drive completely. Then choose "Local reinstall" if you want Windows to reinstall from files already on your computer, or "Cloud download" if you want Windows to download a fresh copy from Microsoft's servers. Cloud download takes longer but is sometimes more reliable.

Windows will show you a summary of what is about to happen and ask you to confirm. Click Reset. The process will take 30 minutes to several hours depending on how much is on your drive and how fast your computer is. Your computer will restart several times during the wipe. Do not turn it off or unplug it — let the process finish completely.

When the wipe is done, your computer will restart and show the Windows setup screen, just as if it were brand new. You will create a new user account, set a password, and choose your privacy settings. After setup finishes, you will have a clean Windows installation with no personal files or programs.

Wipe a Mac using Erase and Reinstall

On a Mac running macOS 11 or later, open System Settings and click General on the left side. Scroll down and click Transfer or Reset. You will see an option that says "Erase All Content and Settings." Click it. Your Mac will ask you to enter your password to confirm.

Your Mac will warn you that this will erase everything and reinstall macOS. Click Continue. The process will take 30 minutes to an hour. Your Mac will restart and show the setup screen when it is done, just like a new Mac out of the box.

If you have an older Mac running macOS 10.15 or earlier, the process is different. Restart your Mac and hold Command + R while it boots to enter Recovery Mode. Once in Recovery Mode, open Disk Utility from the Utilities menu. Select your hard drive from the list on the left, click Erase at the top, and confirm. After the drive is erased, close Disk Utility and choose Reinstall macOS from the Utilities menu.

Wipe from a bootable USB drive if your computer will not start

If your computer will not start up or you cannot access the operating system, you will need to wipe it from a bootable USB drive. This requires another working computer and a USB flash drive with at least 8 gigabytes of space.

On the working computer, download the Windows or macOS installer. For Windows, go to microsoft.com/software-download/windows11 and click "Create installation media now." For Mac, open the App Store, search for the macOS version you want, and click Get. Both will give you the option to create a bootable USB drive. Follow the on-screen steps to write the installer to your USB drive.

Plug the USB drive into the computer you want to wipe. Restart that computer and hold the key that opens the boot menu — this is usually F12, Esc, or Del, but it varies by manufacturer. When the boot menu appears, select your USB drive and press Enter. The installer will start. Choose the option to erase the drive and reinstall the operating system, then follow the prompts to completion.

What to do after the wipe is complete

After your computer finishes wiping and restarting, you will see the operating system setup screen. Create a new user account with a strong password, choose your privacy settings, and let the computer finish its initial setup. This usually takes 10 to 20 minutes.

Once setup is done, you can restore your files from your backup. Plug in your external drive or sign into your cloud storage account and download your files back to the computer. Reinstall any programs you need. Your computer is now clean and ready to use.

If you are selling or giving away the computer, do not restore your files — leave it with just the fresh operating system. The new owner will set up their own account during setup. If you are recycling the computer, you are done — the wipe is complete and your data is gone.

Frequently Asked Questions

Can I recover files after I wipe my computer?

Once a wipe is complete, recovery is extremely difficult and not may provide. A full wipe overwrites the space where files were stored, making them nearly impossible to retrieve. If you need your files, restore them from your backup before you wipe. If you have already wiped and need something back, contact a data recovery service, but this is expensive and success is not certain.

How long does it take to wipe a computer?

A wipe usually takes 30 minutes to several hours depending on how much data is on your drive, how fast your computer is, and which method you use. Cloud download on Windows takes longer than local reinstall. Older computers or computers with large drives take longer than newer ones. Let the process run without interruption — stopping it partway through can leave your computer in an unusable state.

Do I need to wipe my hard drive multiple times to make sure data is gone?

A single wipe is sufficient for personal use. Modern drives overwrite the space where files were stored, making recovery impractical. If you are concerned about extremely sensitive data and plan to sell the computer to someone you do not trust, you can use a tool like DBAN (Darik's Boot and Nuke) to write over the drive multiple times, but this is rarely necessary and takes much longer.

What if I forgot my password and cannot access Settings?

If you cannot log in to your account, you will need to wipe from a bootable USB drive instead. Create the USB drive on another computer following the steps in the bootable USB section above, then use it to wipe your computer. This bypasses the need to log in.

Will wiping my computer remove viruses?

Yes, a complete wipe removes viruses, malware, and any other malicious software because it erases everything on the drive and reinstalls a clean operating system. However, if you restore files from a backup that was infected, you may restore the malware too. Only restore files you are certain were not infected, or scan your backup with antivirus software before restoring.