What file is it? What OS are you using?
If you can’t delete it, it’s probably because the file is currently in use (“running”). If you want to delete the avast folder, it would be better to uninstall it (from the Control Panel / Add/Remove Programs) than to delete it directly.