Reinstalling Windows 10 will remove most viruses and malware from your system since it wipes out everything, including the malicious software. However, to prevent future infections, make sure to install reliable antivirus software and practice safe browsing habits.