You can factory reset an HP laptop using Windows Settings or Windows Recovery to revert the laptop to its original state.
The text above is a summary, you can read full article here.