What erasing your computer means and why you might do it
Erasing a computer completely means removing all your files, programs, and settings, then reinstalling the operating system so the machine runs like it did when new. This is different from deleting individual files — it wipes the entire drive and rebuilds it from scratch.
You might do this to sell or give away the computer, to fix serious software problems that won't go away, to remove malware that antivirus software can't catch, or straightforward to reclaim storage space and speed. The process takes between one and four hours depending on your machine and internet connection, and you cannot undo it once you start, so back up anything you want to keep first.
Key Takeaways
- Back up all your files to an external drive or cloud storage before you start, because erasing removes everything permanently.
- Windows computers use the Reset This PC tool built into Settings; Mac computers use macOS Recovery; both are free and built in.
- You will need your Windows product key or Apple ID password to reinstall the operating system after erasing.
- The process can take one to four hours depending on your internet speed and how much data is on the drive.
- After erasing, you will need to reinstall your programs and restore your files from backup.
Back up your files before you erase anything
Before you touch the erase process, copy everything you want to keep to an external hard drive, USB flash drive, or cloud storage service. This is the step people skip and then regret. Once the erase starts, your files are gone — there is no recovery option.
The fastest method is to plug in an external drive and drag your Documents, Pictures, Desktop, and Downloads folders onto it. If you use cloud storage like OneDrive, Google Drive, or iCloud, make sure your important files have synced to the cloud first. Check that the backup actually worked by opening the external drive and confirming your files are there.
How to erase a Windows computer
On Windows 10 or 11, the built-in tool is called Reset This PC. Open Settings by pressing the Windows key and typing "settings", then click System on the left side. Scroll down and click Recovery, then click Reset This PC.
You will see two options: Keep My Files or Remove Everything. Choose Remove Everything to erase the entire drive. Windows will ask whether you want to remove files quickly or thoroughly — thorough removal takes longer but makes recovery harder if someone later tries to retrieve deleted data. For a personal computer, quick removal is usually fine. For a work machine or one you are selling, choose thorough.
Windows will then read the latest version of Windows from the internet and reinstall it. This takes 30 minutes to two hours depending on your connection speed. Your computer will restart several times during this process — do not turn it off. When it finishes, you will see the Windows setup screen asking for your language, region, and Microsoft account information.
How to erase a Mac computer
On a Mac, restart the computer and hold Command + R as it boots up. This opens macOS Recovery, a special mode that lets you erase and reinstall the operating system. Release the keys when you see the Apple logo or a spinning globe.
In Recovery, click Disk Utility from the menu. Select your main drive (usually called Macintosh HD) from the list on the left, then click Erase at the top. Choose a name for the drive, set the format to APFS, and click Erase. This wipes the drive completely. When it finishes, close Disk Utility and click Reinstall macOS from the Recovery menu. Your Mac will read and install the operating system — this takes one to three hours depending on your internet speed.
You will need your Apple ID and password to complete the reinstall. If you have a newer Mac with Apple Silicon (M1, M2, or later), the process is the same but may be slightly faster.
What to do after the erase is complete
When the operating system finishes reinstalling, you will see the setup screen. Create a new user account or sign in with your Microsoft account (Windows) or Apple ID (Mac). Do not skip this step — you need an account to use the computer.
Once you are logged in, plug in your external backup drive and copy your files back to the Documents, Pictures, and other folders. Reinstall your programs one at a time from their original installers or from the Microsoft Store (Windows) or App Store (Mac). This takes longer than the erase itself, so plan for an extra hour or two.
Troubleshooting if the erase gets stuck
If the erase process hangs or freezes, wait at least 30 minutes before doing anything — large drives can take a long time to wipe. If it is still stuck after an hour, force restart the computer by holding the power button for 10 seconds, then try the erase again from the beginning.
If you cannot get into Settings or Recovery mode, you may need to create a bootable USB drive with Windows or macOS on another computer and erase from there. Microsoft and Apple both have free tools to create these drives on their websites. This is more technical, but it works when the normal method fails.
When to erase versus when to try other fixes
Erasing is a last resort, not a first step. If your computer is slow, try restarting it first — this fixes most slowness. If a program is crashing, uninstall and reinstall just that program. If you think you have malware, run a full scan with Windows Defender (built into Windows) or Malwarebytes (free version available).
Erase only if your computer is so slow or broken that nothing else works, if you are selling it and want to remove all your personal data, or if you want to start completely fresh. For most other problems, erasing is overkill and will cost you hours of reinstalling programs.
Frequently Asked Questions
Can I erase just one drive or partition instead of the whole computer?
Yes. If you have multiple drives or partitions, you can erase just one. In Windows Disk Management or Mac Disk Utility, you can select a specific drive and erase only that one. The operating system will still run from your main drive. This is useful if you have a second drive for storage and want to wipe it without touching your system drive.
What if I forget my Windows product key or Apple ID password?
You can reinstall Windows without entering a product key — it will just show a watermark on the desktop saying Windows is not activated. You can still use the computer normally. For Mac, you need your Apple ID password to complete setup. If you forgot it, go to iforgot.apple.com on another computer to reset it before you start the erase.
How long does it take to erase a computer?
The erase itself takes 15 to 30 minutes. Downloading and reinstalling the operating system takes 30 minutes to two hours depending on your internet speed. Restoring your files and reinstalling programs takes another one to three hours. Plan for three to four hours total from start to finish.
Is it safe to erase a computer I am selling?
Yes, and you should. Erasing removes your personal files, passwords, and browsing history. The new owner will set up their own account and see a clean system. If you are concerned about data recovery, choose the thorough erase option instead of quick erase — it takes longer but makes it much harder for someone to recover deleted files.
Do I need to erase my computer if I am just upgrading to a new one?
If you are keeping the old computer, erasing is optional — you can just stop using it. If you are selling it or giving it away, erase it. If you are recycling it, erasing is a good idea for privacy, though the recycler will likely wipe the drive anyway.