This article explains how to remove Avast Antivirus from your computer. It has a special Self-Defense Mode that prevents malicious software from removing it. You need to disable this mode before you can remove the program.
How to Uninstall Avast Antivirus on Windows 10
To disable Self-Defense Mode in Avast, you need to go to a 'hidden' section of the settings.
Open the Avast user interface and click Menu at the top of the user interface.
Select Settings from the drop-down menu that appears.