You can factory reset an HP laptop using Windows Settings or Windows Recovery to revert the laptop to its original state.
If you can't login after Factory Reset in Windows 11, and after factory reset you are still prompted for sign in but sign in ...