Hi, thanks for reaching out. My name is Bernard a Windows fan like you. I'll be happy to help you out today.
I understand the issue you have, there is nothing to worry I am here to help, technically this process of reset will remove all malware on the PC, but take note it will also remove all the files and apps you have previously installed on the PC.
All in all, the process you want to take will remove the malware on the PC.
Let me know how it goes and I hope that helps.
Bernard