Hello Richard,
you are on the right track. I can see you no longer have the UI nor drivers loaded, so it should be enough to just open Terminal.app and run following command:
rm -rf '/Library/Application Support/Avast'
You should be able to install Avast again after that.
Best regards,
Jakub