Resetting your PC by initiating a factory reset can remove viruses. A factory reset deletes all files from your computer — including everything stored on your hard drive and most viruses. This isn't always ideal because if you don't have any data backup, you will lose valuable documents and photos in a factory reset. It may also not remove complex viruses.  A better alternative would be to reboot into a safe mode and run a virus scan to pinpoint the exact files with a virus.