Hi, without any info on your system/WIN-version and what virus is found: I can just say.: secure our system better, and there’ll be no more alerts.
P.S. Fully automated action is only available in avast PRO