First lets be clear avast doesn't delete anything automatically, but alerts you to infection and 'you' have to make the choice on what action to take.
So there is something else in the mix, what is the $64,000 question.
Have you made any changes to the default settings for when something is detected ?