You might have come upon this problem during scans for viruses and Trojans on your system. A malicious file was identified by your favorite virus scanner and it prompts for action. You can delete, move, rename or move the file into quarantine. It is however not possible to delete malicious files when you choose to delete them because they are currently in use and can’t be therefor deleted.
One way to cope with the situation would be use the freeware Pocket Killbox which deletes selected files before the next system start. Simply start Pocket Killbox and navigate to the file that was identified as a virus. Select delete on reboot and hit the red X icon on the upper right corner of Pocket Killbox. It will prompt for a reboot, select yes and the virus should be automatically deleted during startup.
Just perform a second scan to make sure the virus was really deleted b Pocket Killbox. Another way would be to use the great free program Unlocker which will kill every process that is keeping the file busy. This would mean that you can delete the file in Windows directly without rebooting your computer. It might however have problems with some special system files that have been infected.
Just try both methods and start with Unlocker. Reference to Pocket Killbox first seen on Technibble.
Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.Related Articles:
No Virus Thanks Is A Virus Total AlternativeHow to delete “cannot delete files”
Securely delete files with secure-delete
Free File Wiper, Delete Files So That They Cannot Be Recovered
AVG 8 Update Marked User32.dll As Virus Infected

I’ve used this for over a year. Also great for stopping hung or frozen programs.
KillProcess
Thanks it worked perfectly :)