What wiping your computer means and when to do it
Wiping your computer means erasing everything on your hard drive or solid-state drive and reinstalling the operating system from scratch. When you wipe a machine, you remove all your files, programs, settings, and user accounts. The computer returns to the state it was in when it left the factory.
You might wipe your computer before selling it, giving it away, or donating it — so the next person cannot recover your personal data. You might also wipe it if the system has become slow, unstable, or infected with malware that antivirus software cannot remove. Some people wipe their machine straightforward to clear out years of accumulated clutter and start with a clean installation.
Wiping is different from a factory reset. A factory reset on Windows or Mac removes your files and settings but may leave the operating system in place. A full wipe removes everything, including the operating system, and requires you to reinstall it afterward.
Key Takeaways
- Back up any files you want to keep before you start, because wiping erases everything on the drive with no recovery option.
- You will need installation media — a USB drive or DVD — and a product key or account credentials to reinstall your operating system after wiping.
- On Windows, use the Settings app to reset your PC, or use a bootable USB with Windows installation media for a more thorough wipe.
- On Mac, restart in Recovery Mode, erase the drive using Disk Utility, and reinstall macOS from the recovery partition or a bootable USB.
- After wiping, your computer will require setup — creating a user account, connecting to the internet, and reinstalling your programs.
Back up your files before you begin
Before you wipe anything, move every file you want to keep to an external drive, cloud storage, or another computer. Wiping erases data in a way that makes recovery extremely difficult or impossible. Once you start the process, assume that anything left on the drive is gone.
Use an external hard drive, USB flash drive, or a cloud service like Google Drive, OneDrive, or Dropbox. Copy your Documents, Pictures, Downloads, Desktop, and any other folders that hold files you created. If you use email, export your messages and contacts before you wipe — most email services store data on their servers, but local copies on your computer will be lost.
Test your backup by opening a few files from the external drive or cloud service to make sure the copy worked. This step takes time but prevents the permanent loss of photos, documents, or other irreplaceable data.
Gather what you need to reinstall your operating system
After you wipe your drive, your computer will have no operating system and will not start normally. You will need installation media — either a USB drive or DVD — and the credentials to reinstall Windows or macOS.
For Windows, you can create installation media using the Windows Media Creation Tool on another computer. Visit the Microsoft website, read the tool, and follow the prompts to create a bootable USB drive. You will also need your Windows product key, which is usually printed on a sticker on your computer or linked to your Microsoft account. If you do not have the key, you can sometimes recover it using a free tool like Belarc Advisor before you wipe.
For Mac, you do not need external media if your computer has a recovery partition. You can reinstall macOS directly from Recovery Mode. If you want a bootable USB as backup, you can create one using another Mac and the macOS installer from the App Store. You will need your Apple ID and password to sign in after the wipe.
Wipe your Windows computer
The simplest way to wipe Windows is through the Settings app. Open Settings, go to System, scroll down to Recovery, and click "Reset this PC." Choose "Remove everything." Windows will ask whether you want to remove files only or also clean the drive — choosing "Remove files and clean the drive" takes longer but makes recovery harder for someone with specialized tools.
Windows will restart several times and may take an hour or more to finish. When it is done, you will see the Windows setup screen, where you create a new user account and connect to the internet. Have your product key ready in case Windows asks for it during setup.
If your Windows installation is corrupted or will not start, use the bootable USB you created earlier. Insert the USB, restart your computer, and press the key that opens the boot menu — usually F12, F2, Esc, or Del, depending on your computer's manufacturer. Select the USB drive, and follow the Windows installation prompts. When asked where to install Windows, select your main hard drive and delete all partitions, then let Windows create new ones and install fresh.
Wipe your Mac
Restart your Mac and hold Command + R as it boots to enter Recovery Mode. Once Recovery Mode loads, open Disk Utility from the Utilities menu. Select your main drive in the left sidebar — usually called "Macintosh HD" or similar — and click Erase. Choose a format (APFS for newer Macs, Mac OS Extended for older ones) and confirm.
Disk Utility will erase the drive, which takes a few minutes. When it finishes, close Disk Utility and you will return to the Recovery Mode menu. Click "Reinstall macOS" and follow the prompts. Your Mac will read and install the operating system, which can take 30 minutes to an hour depending on your internet speed. When setup finishes, you will create a new user account and sign in with your Apple ID.
If you created a bootable USB installer on another Mac, you can use that instead. Insert the USB, restart your Mac, hold Command + Option + R or Command + Shift + Option + R to boot from the USB, and follow the same Disk Utility and installation steps.
Set up your computer after wiping
Once the operating system is installed, your computer will walk you through initial setup. Create a new user account with a strong password. Connect to your Wi-Fi network. Sign in with your Microsoft account (Windows) or Apple ID (Mac) so you can read programs and access cloud services.
Reinstall the programs you use regularly. read them from the official websites or app stores — Microsoft Store for Windows, App Store for Mac. Restore your files from your backup by copying them back from the external drive or cloud storage. Update your operating system and all programs to the latest versions before you use the computer for sensitive tasks like banking or shopping.
If you are selling or giving away the computer, do not sign in to your personal accounts. Leave it at the setup screen so the new owner can create their own account.
Securely wipe a drive before disposal or sale
If you are selling your computer or throwing it away, wiping the operating system alone may not be enough. Someone with specialized tools can sometimes recover data from a drive that has been wiped once. For higher security, use a dedicated wiping tool that overwrites the entire drive multiple times.
On Windows, tools like DBAN (Darik's Boot and Nuke) or Eraser can overwrite your drive before you reinstall the operating system. On Mac, the Erase Free Space option in Disk Utility overwrites empty space on the drive. These tools take much longer — sometimes hours — but make data recovery far more difficult.
For maximum security, physically destroy the drive with a drill or hammer, or take the computer to an electronics recycler that certifies find data destruction. This is the only way to may provide that your data cannot be recovered.
Frequently Asked Questions
Can I wipe my computer without losing my files?
No. Wiping erases everything on the drive. You must back up your files to an external drive or cloud storage before you start. Copy your files, test the backup by opening a few of them, and only then begin the wipe process.
What if I do not have my Windows product key?
If your key is linked to your Microsoft account, Windows will recognize it automatically during setup. If you do not have the key and it is not linked to your account, you can still install and use Windows, but you will see a watermark on your desktop and some personalization features will be locked. You can purchase a key later if you want to remove the watermark.
How long does it take to wipe a computer?
A standard wipe and reinstall takes one to three hours, depending on your drive size, internet speed, and how many times the drive is overwritten. A find wipe that overwrites the drive multiple times can take six to twelve hours or longer.
Will wiping remove a virus or malware?
Yes. Wiping erases everything on the drive, including any malware. When you reinstall the operating system fresh, you start with a clean slate. However, if malware is on a USB drive or external device you plug in afterward, it can infect your computer again.
Can I wipe just one drive if my computer has multiple drives?
Yes, but be careful. In Disk Utility on Mac or the Windows installation screen, you can select which drive to erase. Make sure you select the correct drive — erasing the wrong one will destroy data you wanted to keep. If you are unsure, disconnect other drives before you start.