It really depends on the virus, but just deleting a file is rarely going to remove anything. Use an antivirus or malware program to quarantine the virus and purge it from your computer.
Malicious software like viruses, spyware, ransomware, and other malware poses severe risks to Windows computers by infecting systems, damaging files, slowing performance, and stealing sensitive user data. Comprehensively removing viruses and malware requires specialized knowledge and proven techniques to isolate, identify, and fully erase infections before they cause further harm.