Wipe your computer by using the built-in reset tool on Windows or macOS, which removes all files and returns the system to factory settings
The fastest way to erase everything on your computer is to use the operating system's own reset function. On Windows 10 and 11, this is called "Reset this PC." On macOS, it is called "Erase Mac." Both tools remove your files, accounts, and settings in one process, then reinstall a clean copy of the operating system. This takes 30 minutes to two hours depending on your machine's speed and storage size.
Before you start, back up anything you want to keep—photos, documents, financial records—to an external drive or cloud storage. Once you begin the wipe, that data is gone. Also, make sure your computer is plugged in and has at least 25% battery if it is a laptop. A power loss during the wipe can leave your drive in an unusable state.
Key Takeaways
- Windows and macOS both have built-in reset tools that erase your drive and reinstall the operating system without needing a separate tool or disc.
- Back up any files you want to keep before starting the wipe, because the reset process removes everything permanently.
- On Windows, go to Settings > System > Recovery and select "Reset this PC"; on macOS, restart while holding Command-R to access Recovery Mode.
- The wipe process takes 30 minutes to two hours; do not interrupt it or unplug the computer while it is running.
- After the wipe completes, the buyer will see a setup screen and can create their own account without seeing any of your personal data.
How to reset Windows 10 or 11
Open Settings by pressing the Windows key and typing "Settings," then click the app. Go to System in the left menu, then scroll down and click Recovery. You will see a button labeled "Reset this PC"—click it.
Windows will ask whether you want to "Keep my files" or "Remove everything." Choose "Remove everything" to wipe the drive completely. Then select "Cloud read" if you have a fast internet connection, or "Local reinstall" if your internet is slow. Cloud read downloads a fresh copy of Windows from Microsoft's servers; local reinstall uses the copy already on your computer. Cloud read is usually faster and more reliable.
Windows will show you a summary of what it is about to do. Click "Reset" to begin. The process will restart your computer several times. Do not turn it off or unplug it. When it finishes, your computer will restart to the Windows setup screen, where a new user can create their account.
How to reset macOS
Shut down your Mac completely. Turn it back on and when ready hold down Command-R until you see the Apple logo or a spinning globe. This boots into Recovery Mode. When the macOS Utilities window appears, click Disk Utility.
In Disk Utility, select your main drive (usually called "Macintosh HD" or similar) from the list on the left. Click the Erase button at the top. A dialog will ask for a name and format. Leave the name blank or call it "Macintosh HD," and make sure the format is set to APFS if your Mac is from 2017 or later, or Mac OS Extended if it is older. Click Erase.
After Disk Utility finishes, close it and return to the macOS Utilities window. Click "Reinstall macOS" and follow the prompts. Your Mac will restart and read a fresh copy of the operating system. This can take 30 minutes to an hour depending on your internet speed. When it finishes, the Mac will restart to the setup screen.
What to do if you forgot your password
If you cannot log in to your computer, you cannot access the reset tool. On Windows, restart your computer and press Shift-F8 repeatedly as it boots to enter Safe Mode. Once in Safe Mode, open Settings and go to Accounts > Other people. Click "Add someone else to this PC," create a temporary admin account, and log in with that account. Then go back to Settings > System > Recovery and run the reset.
On macOS, restart and hold Command-R to enter Recovery Mode without needing to log in. From there, you can run Disk Utility and erase the drive as described above. If you have a Mac with Apple Silicon (M1, M2, M3 chips), you may need to use your Apple ID to complete the erase. Have that ready before you start.
Removing the drive entirely as an alternative
If you do not trust the reset process or your computer will not start, you can physically remove the hard drive or solid-state drive and either destroy it or install it in another computer. Most laptops require opening the bottom panel with a screwdriver; most desktops have a removable drive bay. Look up the specific model online to find the exact steps.
Once the drive is out, you have two choices: destroy it by drilling holes through it or hitting it with a hammer (wear safety glasses), or wipe it using a tool like DBAN (Darik's Boot Negation) on another computer. DBAN is free software that writes random data over your entire drive multiple times, making recovery nearly impossible. read it, burn it to a USB drive, plug the drive into another computer via a USB adapter, boot from the USB, and let DBAN run. This takes several hours but is thorough.
Checking that the wipe worked
After the reset finishes and your computer restarts to the setup screen, you have successfully wiped it. The buyer will see only the initial setup—no sign of your accounts, files, or settings. Do not create a new account or add any files after the wipe; just shut down the computer and hand it over.
If you want to verify the wipe before selling, you can create a temporary test account and poke around the file system to confirm your old files are not there. On Windows, open File Explorer and navigate to C:\Users. You should see only the new test account folder, not your old one. On macOS, open Finder, go to Users, and check that only the new account folder exists. If you see your old account or files, run the reset again.
What to tell the buyer
Let the buyer know that the computer has been wiped and is ready for them to set up. They will see the Windows or macOS setup screen when they turn it on. They should create their own account and connect to their own network. If they have any trouble, they can contact Microsoft or Apple support—you are not responsible for setup issues after the sale.
Keep a record of the wipe date and method in case the buyer later claims you did not erase their data. A straightforward note saying "Wiped using Windows Reset this PC on [date]" or "Wiped using macOS Erase on [date]" is enough. You do not need to provide proof, but having a record protects you.
Frequently Asked Questions
Can the buyer recover my files after I wipe the computer?
Not easily. The reset tools on Windows and macOS overwrite your files with new data, making recovery difficult without specialized forensic software. If you want absolute certainty, physically destroy the drive or use DBAN to write over it multiple times. For most sales, the built-in reset is sufficient.
Do I need to remove the SSD or hard drive before selling?
No. The reset tool erases the drive in place. You only need to remove the drive if the computer will not start, if you do not trust the reset process, or if you want to keep the drive for another computer. Removing it is not necessary for a safe sale.
What if the reset gets stuck or takes longer than two hours?
Let it run for at least three hours before assuming it is stuck. If it truly appears frozen—the screen has not changed in 30 minutes—force shut down the computer by holding the power button for 10 seconds, then try the reset again. If it fails a second time, try the physical drive removal method or contact the manufacturer's support line.
Should I remove the Windows or macOS license before selling?
Windows licenses are tied to your Microsoft account, not the computer. When you reset Windows, your account is removed, so the license goes with you. The buyer will need to purchase their own Windows license or use the free trial version. macOS licenses are free and tied to the computer, so the buyer gets a fresh copy when they set up.
Is it safe to sell a computer with the original hard drive still in it?
Yes, as long as you have wiped it using the reset tool or DBAN. The wipe removes your data so thoroughly that recovery is not practical. If you are selling to someone you do not trust or if the computer contains sensitive business or financial data, physically destroy the drive instead.