How to Erase All Data on HP Pavilion Laptop
In this article
To erase all data on an HP Pavilion, you need to perform a factory reset using Windows' built-in recovery options. The exact steps depend on whether you can still sign in to Windows: if you can, use Settings > System > Recovery > Reset this PC; if you cannot, use the advanced startup options from the sign-in screen or a Windows installation USB. This wipes the drive and reinstalls Windows, so back up anything you want to keep first. Below is the full process, including what to prepare and how to handle common problems.
What You'll Need
- Your HP Pavilion laptop and its power adapter (plug it in before starting).
- A backup of any files you want to keep — an external drive, cloud storage, or another PC.
- Your Windows product key (usually embedded in the BIOS on HP Pavilions, so you rarely need to enter it manually).
- At least 8 GB of free space on the drive if you choose to keep files during the reset (not recommended for a full erase).
- Optional: a Windows installation USB (8 GB or larger) if the built-in reset fails.
Step-by-Step
- Back up your data. Connect an external drive or use cloud storage. Copy your Documents, Pictures, Desktop, Downloads, and any other folders you need. If you use OneDrive, check that files are synced or copied elsewhere. Once you erase the drive, recovery is difficult and often impossible.
- Plug in the power adapter. A factory reset can take an hour or more. If the battery dies mid-reset, Windows may become corrupted and the laptop may not start.
- Open Windows Settings. Click the Start button, then the gear icon (Settings). On Windows 11, go to System > Recovery. On Windows 10, go to Update & Security > Recovery. Menu labels can differ slightly by Windows version and HP model, but the path is similar.
- Choose “Reset this PC.” Under Recovery, click Get started (Windows 11) or Get started under “Reset this PC” (Windows 10).
- Select “Remove everything.” This erases all personal files, apps, and settings. The “Keep my files” option only removes apps and settings, not your documents, so it does not meet the goal of erasing all data.
- Choose “Local reinstall” or “Cloud download.” Local reinstall uses the recovery image already on your laptop; cloud download fetches a fresh copy of Windows from Microsoft (requires an internet connection). Either works; cloud download can be more reliable if the local image is damaged.
- Set “Change settings” if needed. Click Change settings and turn on “Clean data” if you plan to give away or sell the laptop. This overwrites the drive to make recovery harder. Turn on “Data drives” only if you have additional internal drives you also want to erase. Then click Confirm.
- Click “Reset” to begin. The laptop restarts and shows a progress screen. Do not turn it off. The process can take 30 minutes to several hours depending on drive size and speed.
- Follow the out-of-box setup. When the reset finishes, Windows starts as if the laptop were new. You can turn it off at the region screen if you are preparing it for someone else, or complete setup if you are keeping it.
Common Mistakes
- Choosing “Keep my files” by mistake. That option leaves your documents and photos on the drive. For a full erase, always pick “Remove everything.”
- Not backing up first. A factory reset deletes everything on the Windows drive. There is no Recycle Bin to recover from afterward.
- Skipping “Clean data” when selling. Without it, files may be recoverable with forensic tools. Enable it if the laptop is leaving your possession.
- Resetting on battery power. A power loss during reset can leave Windows unbootable. Keep the adapter connected.
- Erasing the wrong drive. If your Pavilion has a second internal drive, decide whether to wipe it too. The reset only touches the Windows drive by default.
Tips
- Before resetting, sign out of accounts that tie the device to you, such as Microsoft Store or OneDrive, to avoid sync issues later.
- If you use a local account, note your password — you may need it to confirm the reset.
- For the cleanest result on a laptop you plan to sell, use “Clean data” and then reinstall Windows from a USB drive; this removes HP's recovery partition as well.
- After the reset, run Windows Update and HP Support Assistant to reinstall drivers specific to your Pavilion model.
- If you are keeping the laptop, create a new user account during setup rather than reusing an old one.
Troubleshooting
The reset option is missing or greyed out. This can happen if the recovery partition is damaged or if you are using a work/school account with restrictions. Try running the reset from the advanced startup menu: hold Shift while clicking Restart from the Start menu, then choose Troubleshoot > Reset this PC. If that fails, use a Windows installation USB.
The reset freezes or fails with an error. Restart the laptop and try again. If it repeatedly fails, create a Windows installation USB on another PC using the Media Creation Tool from Microsoft's website, boot from it, and choose “Custom: Install Windows only” to delete all partitions and install fresh. This also erases all data.
The laptop won't boot after reset. Disconnect all peripherals except the power adapter, then hold the power button for 10 seconds to force a shutdown. Restart. If it still won't boot, use the USB installation method above.
You forgot your Windows password and can't sign in. From the sign-in screen, click the power icon, hold Shift, and click Restart. Choose Troubleshoot > Reset this PC and follow the same steps. You will not need the old password to erase the drive.
HP Recovery Manager does not open. HP Recovery Manager is being phased out on newer models; Windows' built-in reset is the supported method. If your Pavilion has an older HP Recovery partition, you can access it by pressing F11 at startup, but the Windows reset is more reliable.
Frequently Asked Questions
Does erasing all data remove Windows too?
Yes. A factory reset removes Windows, your files, and apps, then reinstalls a fresh copy of Windows. The laptop will start like new.
How long does it take to erase an HP Pavilion?
Typically 30 minutes to 2 hours for a standard reset. Enabling “Clean data” can add several hours because it overwrites the drive.
Can I recover files after a factory reset?
Generally no, especially if you used “Clean data.” Without it, some files might be recoverable with specialized software, but you should not count on it. Always back up first.
Do I need a Windows product key?
No. On HP Pavilions, the product key is embedded in the BIOS and Windows activates automatically after the reset.
Will a factory reset remove viruses?
Yes, a full reset removes malware from the Windows drive. If the virus infected the BIOS or other firmware, a reset may not be enough, but that is rare.
What if I want to keep some files but erase everything else?
Use “Keep my files” during reset, but note that it keeps your personal documents. If your goal is to erase all data, choose “Remove everything” instead.