What wiping your computer means and when to do it

Wiping your computer means erasing everything on your hard drive or solid-state drive — all your files, programs, and operating system — and then reinstalling a fresh copy of Windows, macOS, or Linux. This is different from deleting individual files or emptying your trash. When you wipe, you are removing data at a level that standard deletion cannot reach.

You might wipe your computer before selling it or giving it away, when it has become too slow or unstable to use reliably, when you want to remove malware that antivirus software cannot clean, or when you are switching to a different operating system. Wiping is also the right choice if you have inherited a computer and want to start fresh without the previous owner's files and settings.

The process takes between one and four hours depending on your drive size and internet speed. You will need a blank USB flash drive (at least 8 GB), another working computer to prepare that drive, and your Windows or macOS installation key or account information. Back up anything you want to keep before you start — wiping erases it permanently.

Key Takeaways

  • Wiping removes everything on your drive and reinstalls a fresh operating system, which is different from deleting files or restarting your computer.
  • You will need a blank USB drive (8 GB or larger), access to another computer, and your Windows or macOS product key or account login before you begin.
  • Back up any files you want to keep to an external drive or cloud storage, because wiping erases them permanently.
  • The process involves creating installation media on the USB drive, booting from that drive, and following the operating system's setup wizard.
  • After wiping, you will need to reinstall your programs and restore your backed-up files from scratch.

Preparing your computer and gathering what you need

Before you touch anything, shut down your computer completely and unplug it from power. This prevents accidental changes while you work. Then gather your materials: a USB flash drive that is blank or that you do not mind erasing, another computer that works and has internet access, and your Windows or macOS product key. If you do not have a product key written down, check your email for a receipt from when you bought Windows, or look on the back of your computer's case — many manufacturers print it there.

If you are using a Mac, you will need your Apple ID and password instead of a product key. Write these down on paper before you start, because you will not be able to look them up once the drive is wiped. For Windows, if you do not have a product key, Windows will still install and run, but you will see a watermark on your desktop and will not be able to customize some settings until you add a key later.

Back up any files you want to keep. Plug an external hard drive into your computer, or use cloud storage like Google Drive, OneDrive, or iCloud. Copy your Documents, Pictures, Desktop, and any other folders that hold things you care about. This step takes as long as your files are large — a few gigabytes might take 30 minutes, while 500 GB could take several hours. Do not skip this step.

Creating installation media on a USB drive

Plug your blank USB drive into the other working computer. Go to the official Microsoft website and read the Windows installation tool (called the Media Creation Tool), or go to Apple's website and read macOS Big Sur or a newer version. These are free downloads. The Windows tool is about 20 MB; the macOS read is several gigabytes, so use a wired internet connection if you have one — it will be faster.

For Windows: Open the Media Creation Tool. Click "Create installation media for another PC." Choose your language, edition (usually Windows 11 Home), and architecture (64-bit for almost all modern computers). Select "USB flash drive" as your media type. The tool will find your USB drive and write the Windows installer to it. This takes 10 to 20 minutes. When it finishes, safely eject the USB drive.

For macOS: Open the App Store and read the macOS version you want (Sonoma, Ventura, or Monterey are current). Once it downloads, open the Applications folder, right-click the installer, and select "Show Package Contents." Navigate to Contents > Resources and run the createinstallmedia script in Terminal. This is more technical — if you are not comfortable with Terminal, use the Disk Utility method instead: format your USB drive as Mac OS Extended, then use the Restore tab in Disk Utility to copy the installer to the drive. Either way takes 15 to 30 minutes.

Booting from the USB drive and starting the wipe

Plug the USB drive into the computer you want to wipe. Restart that computer. As it boots up, hold down the key that opens the boot menu — this is usually F12, F2, Delete, or Escape, depending on your computer's manufacturer. You will see a list of devices. Select your USB drive (it might be labeled "USB" or show the drive's brand name). Press Enter. The computer will boot from the USB drive instead of from its hard drive.

If you do not see a boot menu, restart again and try a different key. If that does not work, restart once more and look for a setting called "BIOS Setup" or "UEFI Setup" in the boot menu. Inside that menu, find the "Boot Order" or "Boot Sequence" section and move your USB drive to the top of the list. Save and exit. The computer will restart and should now boot from the USB.

Once the computer boots from the USB, you will see the Windows or macOS setup screen. For Windows, you will see "Windows Setup" with a blue background. For macOS, you will see the macOS Utilities window. You are now ready to erase the drive.

Erasing the drive and installing the operating system

In Windows Setup, click "Install Now." Read the license terms and click "I accept." When asked where to install Windows, you will see a list of drives. Select the largest drive (usually labeled "Drive 0" or showing your drive's size in GB). Click "Delete" to erase it. Windows will ask you to confirm — click "Delete" again. The drive is now blank. Click "Next" and Windows will begin installing. This takes 20 to 40 minutes. Your computer will restart several times. Do not unplug it or press any keys during this time.

In macOS Utilities, click "Disk Utility." Select your main hard drive from the list on the left (usually "Macintosh HD" or your computer's name). Click "Erase" at the top. Choose a name for your drive, set the format to "APFS" (or "Mac OS Extended" if you are installing an older macOS version), and click "Erase." The drive will be wiped in a few seconds. Close Disk Utility and click "Reinstall macOS." Select your erased drive and click "Continue." macOS will read and install, which takes 30 minutes to an hour depending on your internet speed. Your computer will restart several times.

When installation finishes, your computer will restart and show the setup screen for your new operating system. You will be asked to choose your language, create a user account, and set a password. Fill in these details. For Windows, you can sign in with a Microsoft account or create a local account. For macOS, you will need your Apple ID. Once setup finishes, you can remove the USB drive and restart normally.

Reinstalling programs and restoring your files

Your computer now has a clean operating system with no programs except the ones that came with it. Plug in your external backup drive or sign into your cloud storage account. Copy your backed-up files back to your Documents, Pictures, and other folders. This takes as long as your files are large.

Reinstall the programs you use. For Windows, visit the websites of each program (Microsoft Office, Adobe Creative Suite, your browser, antivirus software, and so on) and read the installers. For macOS, use the App Store for most programs, or visit the developer's website for others. Install one program at a time and restart your computer after each installation. This prevents conflicts and makes it easier to spot problems.

Once your programs are installed and your files are restored, run Windows Update (on Windows) or Software Update (on macOS) to read the latest security patches. This usually takes 30 minutes to an hour and may require several restarts. Your computer is now wiped, fresh, and ready to use.

Common mistakes and how to avoid them

The most common mistake is not backing up files before you start. Once the drive is wiped, recovery is expensive and not always possible. Back up everything you care about, even if you think you will not miss it. The second mistake is erasing the wrong drive if your computer has multiple drives. In the Windows installer, look carefully at the drive size to make sure you are erasing the right one. If you have a second hard drive with files on it, unplug it before you start wiping, then plug it back in after the new operating system is installed.

A third mistake is unplugging the computer or turning it off during installation. Let the process run all the way through, even if it seems stuck. Installation can take a long time on older computers or slow internet connections. If the screen has not changed in more than an hour, then you can force a restart by holding the power button for 10 seconds.

Finally, do not throw away the USB drive after you are done. Keep it in a safe place. If your computer has problems later, you can use it to reinstall the operating system again without downloading everything from scratch.

Frequently Asked Questions

Can I wipe my computer without a USB drive?

Windows and macOS both have built-in reset tools that do not require a USB drive. On Windows 10 or 11, go to Settings > System > Recovery and click "Reset this PC." On macOS, restart and hold Command-R to enter Recovery Mode, then use Disk Utility to erase and reinstall. These methods are slower and sometimes less reliable than using a USB drive, but they work if you do not have one available.

What if I do not have a Windows product key?

Windows will install and run without a product key. You will see a watermark on your desktop saying "set up Windows" and you will not be able to change your background or theme. You can add a key later by going to Settings > System > set up and clicking "Change product key." If you bought your computer from a manufacturer like Dell or HP, the key is usually on a sticker on the case.

How long does wiping take?

The entire process — backing up, creating the USB drive, wiping, and reinstalling — usually takes three to six hours. Installation itself takes one to two hours. The rest of the time goes to backing up and downloading programs. Older computers or slow internet connections may take longer.

Will wiping remove viruses and malware?

Yes. Wiping erases everything on the drive, including any malware. After you wipe and reinstall, your computer starts with a clean slate. However, if malware is on your backup files, you can reinfect your computer when you restore them. Scan your backup drive with antivirus software before you copy files back, or restore only the files you absolutely need.

Can I wipe just part of my computer to free up space?

No. Wiping erases the entire drive. If you only want to free up space, delete individual files, empty your trash, uninstall programs you do not use, or move large files to an external drive. Wiping is only necessary when you want to remove everything and start fresh.