When Avast detects a virus it has a option to remove the infected file at the next boot of the system. Check that. That should work.