PC Virus

There was an attack on my PC but it was blocked.   I managed to find the file that was attacking my computer but I am unable to delete it becuz it will not let me.  When I scaned the files for viruses none showed up but it keeps attacking me.  How do I get rid of the file if it doesn't let me delete it?