Home and personal computers
Can you remove a virus, or do I need a new computer?
Short answerAlmost always removable. You rarely need a new computer because of an infection.
Most infections are cleanable, and a clean reinstall with your files preserved handles the stubborn ones. If someone told you a virus means you have to buy a new computer, get a second opinion.
One important note: if you were contacted by someone claiming to be tech support, or you gave anyone remote access to your machine, change your passwords from a different device and check your bank accounts. That situation is usually about your accounts, not your computer.