Can't access, chest or delete infected files.

Each time I run a scan on my Intel iMac, I get a list of 3 or 4 infected files. all of which have paths like “/private/var/tmp/VSInstaller_dp2040.app/Contents/Resources/files/Version.plist”. I can’t access this file or any of the folders in the path and avast tells me that it can’t delete or chest the files. What should I be doing?