Firstly delete isn’t a good first option, you have none left, better to send it to the chest and investigate.

What is your OS ?
What was the virus name ?
What was the infected file name, where was it found example (C:\windows\system32\infected-file-name.xxx) ?
You can check the avast Log Viewer, warning section for this information.