dld,

Some viruses “wrap” themselves around system files and thus, when you isolate and delete the virus, you can actually remove infected system files as well.

Your actions were correct in this instance.

Please try to furnish more information on the virus especially any filename and path that Avast provides so that we can research the problem and its possible effects.

Welcome to the forum