First off, in order to do that, you need HP Recovery Media -- but HP has not carried this for Win7 PCs for years. Nor have the third-party media suppliers. So, I know of nowhere today where you can obtain this media.
Second, installing Win7 afresh will then cause you to download literally HUNDREDS of Windows Updates -- which will lock up your PC for DAYS downloading and installing those updates. Last time I did this, there were over 200 updates involved.
Third, MS no longer supports Windows 7 and no longer provides security patches, so connecting a Win7 PC to the Internet today is asking for the PC to be infected with Malware.
***If my post helped, click the thumbs-up symbol to say thanks***
***Please mark Accept As Solution if my post solved your problem***
I am a volunteer and I do not work for, nor represent, HP
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".