Avast stops my spider software

Hi I have a question. I use a webspider program that scans urls for meta data. Every now and then it comes a cross a website that is infected with mallware. Avast alerts me to this but at the same time stops the spider from advancing until I click the remove button in Avast to remove the infected file. My question is how can I get Avast to automatically remove the infected file without me having to push a button so I can leave my spider software on all night doing its tasks?

Use version 5.
Configure the automated actions in the Expert settings of the resident shields.
Better is sending to Chest and not direct removal.