What is the infected file name, where was it found e.g. (C:\windows\system32\infected-file-name.xxx) ?
Check the avast! Log Viewer (right click the avast 'a' icon), Warning section, this contains information on all avast detections. C:\Program Files\Alwil Software\Avast4\ashLogV.exe
Deletion isn't really a good first option (you have none left), 'first do no harm' don't delete, send virus to the chest and investigate.
Why it can't delete or move from the archive may become apparent when you post the info about the detections. Some archives are using multiple levels of archive making it difficult depending on the archive type.
The on-line scanner may not even be scanning the archive, so it is hard to say one way or another without the information I asked for.