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

Wiping a computer means erasing all the data on your hard drive or solid-state drive (SSD) and removing the operating system, leaving the machine blank. This is different from a regular restart or factory reset — it removes everything, including Windows, macOS, or Linux itself. After a wipe, your computer will not boot up until you reinstall an operating system.

You wipe a computer when you plan to sell it, give it away, recycle it, or start completely fresh with a new operating system. Wiping is also the right choice if your machine has a severe virus or malware infection that antivirus software cannot remove, or if you want to erase all traces of your personal files before passing the computer to someone else.

A factory reset (which Windows and Mac both offer) removes your files and user accounts but leaves the operating system in place. A wipe removes the operating system too. Choose a wipe if you are selling the machine to a stranger, recycling it, or switching to a different OS entirely.

Key Takeaways

  • Wiping a computer requires a bootable USB drive or installation media and removes all data and the operating system, leaving the drive completely blank.
  • Windows computers can be wiped using Windows installation media or third-party tools like DBAN; Mac computers use Disk Utility from Recovery Mode; Linux machines use command-line tools or live USB utilities.
  • Back up any files you want to keep before you start, because wiping is permanent and recovery is difficult once the drive is overwritten.
  • After wiping, you will need to reinstall an operating system or pass the blank machine to someone who will.

Preparing your computer before you wipe it

Before you wipe anything, back up the files you want to keep. Copy them to an external hard drive, USB stick, or cloud storage service. Check your Documents, Downloads, Desktop, Pictures, and Music folders, plus any custom folders where you store work or personal files. If you use cloud services like OneDrive, Google Drive, or iCloud, make sure your important files have synced to the cloud first.

If you have programs installed that you paid for (not free software), write down the product keys or license numbers. You will need them to reinstall the software after you wipe and reinstall the operating system. For Microsoft Office, Adobe Creative Suite, or other subscription software, note your account login details.

Shut down the computer completely. Do not put it to sleep — turn it off fully. Then unplug any external drives, printers, or USB devices except the bootable drive you will use to wipe the machine.

Wiping a Windows computer

The easiest method for Windows is to use the Windows installation media. read the Windows installation tool from Microsoft's website on a different computer, then create a bootable USB drive. Insert that USB drive into the Windows machine you want to wipe, restart the computer, and boot from the USB drive (you may need to press F12, Del, or Esc during startup to enter the boot menu — the key varies by manufacturer).

When the Windows Setup screen appears, choose Custom Install. The installer will show you a list of drives and partitions. Select each partition on the drive you want to wipe and click Delete. Once all partitions are gone, select the unallocated space and click Next. Windows will format the drive and begin installation. You can stop the installation at any point — the drive will remain wiped.

If you do not have Windows installation media, you can use DBAN (Darik's Boot Negation), a free tool that wipes drives by overwriting them with random data. read DBAN on another computer, burn it to a USB drive, boot from that drive on the machine you want to wipe, and follow the on-screen prompts. DBAN is slower than the Windows method but more thorough for security.

Wiping a Mac computer

On a Mac, restart the computer and hold Command + R while it boots to enter Recovery Mode. Once Recovery Mode loads, open Disk Utility from the Utilities menu. In Disk Utility, select the main drive (usually called "Macintosh HD" or your custom drive name) in the left sidebar, then click the Erase button at the top.

A dialog will appear asking for a name and format. You can name the drive anything or leave it blank. For format, choose APFS if your Mac is from 2017 or later, or Mac OS Extended (Journaled) if it is older. Click Erase. The process takes a few minutes. Once it finishes, your Mac drive is completely blank.

If you want to reinstall macOS after wiping, stay in Recovery Mode and select Reinstall macOS from the Utilities menu. If you are passing the Mac to someone else, you can leave it blank — they will see the macOS setup screen when they first turn it on.

Wiping a Linux computer

Linux wiping depends on which distribution you use and whether you can boot into the system. If the system still boots, open a terminal and use the shred command to overwrite files securely, or use dd to wipe the entire drive (this requires root access and will destroy all data when ready). The command sudo dd if=/dev/zero of=/dev/sdX bs=1M will overwrite the drive, but only use this if you are certain of the drive letter.

If the system will not boot or you want a safer method, read a live USB tool like DBAN or Eraser on another computer, create a bootable USB, boot from it on the Linux machine, and follow the on-screen wipe process. This is slower but gives you a visual confirmation of progress.

After wiping, you can reinstall Linux by downloading an ISO file of your chosen distribution, burning it to a USB drive, and booting from that drive. The installer will guide you through partitioning the blank drive and installing the operating system fresh.

What to do after you wipe your computer

Once the wipe is complete, your drive is blank and the computer will not boot. If you plan to use the machine again, you must reinstall an operating system. read the installation media for Windows, macOS, or Linux on another computer, create a bootable USB drive, and boot from it on the wiped machine. Follow the installer's prompts to partition the drive and install the OS.

If you are selling or giving away the computer, you can leave it blank or install a fresh copy of the operating system before handing it over. Many buyers prefer to receive a machine with a working OS already installed. If you are recycling the machine, the wipe is complete — you can drop it off at an e-waste facility.

Keep your backup files safe. Once the wipe is done and the new OS is installed, you can restore your personal files from your external drive or cloud storage. Reinstall any paid software using your product keys or account logins.

Wiping a computer with encryption or a locked drive

If your drive is encrypted with BitLocker (Windows), FileVault (Mac), or LUKS (Linux), you must decrypt it before you can wipe it. On Windows, open Settings, go to System > About, find BitLocker, and click Manage BitLocker. Turn off encryption and wait for the process to finish — this can take hours on a large drive. Once decryption is complete, follow the standard Windows wipe process.

On Mac, go to System Preferences > Security & Privacy > FileVault and click Turn Off FileVault. You will need your login password. Wait for decryption to finish, then restart and enter Recovery Mode to wipe the drive using Disk Utility.

If you forgot your password and cannot decrypt the drive, you may need to use a password reset tool or contact the manufacturer for support. Some third-party tools can wipe encrypted drives without decryption, but they are slower and less reliable.

Frequently Asked Questions

Can I recover files after I wipe a computer?

Recovery is possible when ready after a wipe if you have not yet written new data to the drive. Use data recovery software like Recuva (Windows) or DiskDigger (Mac) on another computer with the wiped drive connected as an external drive. However, recovery becomes harder the more you use the drive after wiping, because new data overwrites the old. If you used DBAN or multiple overwrite passes, recovery is nearly impossible.

How long does it take to wipe a computer?

A standard wipe using Windows installation media or Mac Disk Utility takes 5 to 30 minutes depending on drive size and speed. DBAN and other multi-pass tools can take several hours because they overwrite the drive multiple times for security. If you are just erasing partitions and not overwriting, it is faster.

Do I need to remove the hard drive before wiping?

No. You can wipe the drive while it is still inside the computer using bootable media. You only need to remove the drive if you plan to physically destroy it, install it in another machine, or if the computer will not boot from USB.

What is the difference between a wipe and a factory reset?

A factory reset removes your files and user accounts but leaves the operating system installed. A wipe removes everything, including the operating system, leaving the drive blank. Use a factory reset if you want to keep Windows or macOS; use a wipe if you are selling the machine, switching operating systems, or need a completely clean slate.

Is it safe to wipe a computer myself?

Yes, as long as you have backed up the files you want to keep first. Wiping is permanent, so double-check your backup before you start. If you are unsure about any step, write down the instructions and follow them slowly. The process is straightforward on all three operating systems.