How do I remove infected files found with ClamAV?
1 Reply
tommydavidson
Linode Staff
To remove infected files found by ClamAV, you can run the clamscan
command with the --remove
flag, as outlined in this post from Ask Ubuntu. As mentioned in that post, the command you want to use is:
clamscan -r --remove /home/USER
You can also opt to move the files to another location if you wish to audit them before deletion with the following command:
clamscan -r --move=/home/USER/VIRUS /home/USER