What erasing your computer means and why you might do it
Erasing your computer means removing all the files, programs, and settings you have added since you first turned it on, returning it to the state it was in when it left the factory. This is different from deleting individual files or uninstalling a single program — it wipes the entire hard drive or solid-state drive clean.
People erase computers for several reasons: selling or giving away the machine, fixing severe software problems that reinstalling programs won't solve, removing malware that has burrowed into the system, or straightforward starting over with a clean slate. The process takes between 30 minutes and several hours depending on your computer's age and storage size.
Before you erase anything, understand that this action cannot be undone. Once the drive is wiped, the files are gone. If you need to keep documents, photos, or other data, you must back them up to an external drive or cloud storage first.
Key Takeaways
- Back up all your files to an external drive or cloud storage before erasing, because the process cannot be reversed.
- Windows computers use the Reset This PC feature found in Settings, while Mac computers use Erase and Reinstall through System Settings.
- The erase process reinstalls the operating system automatically, so you do not need an installation disc or USB drive for most modern computers.
- Plan for the process to take one to three hours, and keep your computer plugged in and connected to the internet throughout.
- After erasing, your computer will restart and ask you to set up Windows or macOS again, just as if it were brand new.
Back up your files before you start
The first step is the most important: save everything you want to keep. Open your Documents, Pictures, Desktop, and Downloads folders and move anything you need to an external hard drive, USB flash drive, or cloud service like OneDrive, Google Drive, or iCloud.
If you use cloud storage already, check that your files have synced to the cloud before you erase. Sign into your cloud account on a phone or another computer to confirm the files are there. For local backups, plug in an external drive and drag your folders onto it, or use your operating system's built-in backup tool.
Also write down any software license keys or passwords you will need after the erase. Some programs require you to enter a license key when you reinstall them. Check your email for purchase receipts or look in the program's settings menu under Help or About.
Erase a Windows computer
On Windows 10 or Windows 11, go to Settings (press the Windows key and type "Settings"), then select System in the left sidebar. Scroll down and click Recovery.
Under "Recovery options," click the button labeled Reset this PC. Windows will ask whether you want to keep your files or remove everything. Choose Remove everything. On the next screen, select Local reinstall (this downloads Windows from Microsoft's servers and reinstalls it on your computer).
Windows will show you a summary of what will happen and ask you to confirm. Click Reset. Your computer will restart several times during the process. Do not turn it off or unplug it. The entire process usually takes 45 minutes to two hours depending on your internet speed and how much data was on the drive.
When the erase is complete, your computer will restart and show the Windows setup screen, just as if you had bought it new. You will create a new user account, set your language and time zone, and connect to the internet.
Erase a Mac computer
On a Mac running macOS 11 or later, click the Apple menu in the top-left corner and select System Settings (or System Preferences on older versions). Click General in the sidebar, then scroll down and click Transfer or Reset.
Click Erase All Content and Settings. Your Mac will warn you that this action cannot be undone and will ask for your Apple ID password. Enter it and click Continue. If you have a Mac with an Apple Silicon chip (M1, M2, M3, or later), the process takes about 15 to 30 minutes. Intel-based Macs may take longer.
Your Mac will restart and show the setup screen. You will be asked to select your language, create a new user account, and connect to Wi-Fi. Keep your Mac plugged in and do not close the lid or put it to sleep during the erase.
If you have an older Mac that does not have the "Erase All Content and Settings" option, you can use Disk Utility instead. Restart your Mac and hold Command + R to enter Recovery Mode, then open Disk Utility from the Utilities menu. Select your hard drive, click Erase, and follow the prompts.
What to do if your computer won't start
If your computer will not boot into Windows or macOS, you cannot use the built-in erase tools. Instead, you will need to create a bootable USB drive on another computer and use it to erase your broken machine.
For Windows, read the Windows Installation Media Creation Tool from Microsoft's website on a working computer. Plug in a blank USB drive (8 GB or larger), run the tool, and follow the steps to create a bootable Windows USB. Then plug that USB into your broken computer, restart it, and press F12 or Delete during startup to enter the boot menu. Select the USB drive and follow the Windows installation steps.
For Mac, you can create a bootable macOS installer USB on another Mac by downloading macOS from the App Store, then using the createinstallmedia command in Terminal. This is more technical; if you are not comfortable with Terminal commands, take your Mac to an Apple Store or authorized repair shop.
After your computer is erased
Once the erase is complete and your computer has restarted, you will see the setup screen for a brand-new system. Create a user account with a strong password, connect to your Wi-Fi network, and sign in with your Microsoft account (Windows) or Apple ID (Mac).
After setup, your computer will read and install updates automatically. This can take 30 minutes to an hour. Let it finish before you do anything else. Then reinstall the programs you need: web browsers, office software, media players, and any other applications you use regularly.
Restore your files from your backup by plugging in your external drive or signing into your cloud storage account. Your documents, photos, and other data will be back where you left them, but your computer itself will be clean and running only the software you choose to install.
Common mistakes to avoid
Forgetting to back up first is the most costly mistake. Once you click the final confirmation button, your files are gone. Spend the extra 30 minutes backing up before you start the erase process.
Unplugging or restarting during the erase can corrupt your hard drive and make it impossible to use. Keep your computer plugged in and let it finish, even if it seems stuck. The erase process can appear frozen for 10 or 15 minutes at a time, especially on older machines.
Losing your software license keys means you may not be able to reinstall paid programs. Write down or screenshot any license keys before you erase. Check your email for purchase receipts from software vendors.
Not having your Wi-Fi password handy will slow you down during setup. Write it down before you start, or have it available on your phone so you can enter it when prompted.
Frequently Asked Questions
Can I erase just one drive if my computer has multiple drives?
Yes, but only if you are comfortable using Disk Utility (Mac) or Disk Management (Windows). The built-in reset tools erase your main drive only. If you have a second hard drive or external drive you want to wipe, you can erase it separately through these tools without touching your main system drive.
What if I forgot my password and can't get into Settings?
On Windows, you can restart your computer and press Shift + F8 repeatedly during startup to enter Safe Mode, then try to reset your password. On Mac, restart and hold Command + S to enter Single-User Mode, then type specific commands to reset your password. If these steps do not work, you will need to create a bootable USB drive on another computer and erase from there.
How long does it actually take to erase a computer?
Modern computers with solid-state drives usually take 15 to 45 minutes. Older computers with traditional hard drives can take two to three hours. The time depends on your drive size, internet speed, and how much data was stored. Plan for at least one hour and keep your computer plugged in the whole time.
Do I need to erase my computer before selling it?
Yes, absolutely. Erasing removes your personal files, passwords, and account information so the new owner cannot access them. Use the built-in erase tools described above — they are designed specifically for this purpose and are more thorough than straightforward deleting files.
Can I undo an erase if I change my mind?
No. Once the erase process completes, your files are gone. The only way to recover them is if you backed them up beforehand. This is why backing up before you start is so important — it is your only safety net.