You may have encountered the following issue during scans for viruses and other malicious software 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 the malicious file when you select to do so because the file is currently in use and can't be deleted, or it uses some kind of protection to evade the deletion.
While you could boot into a Linux system using a live cd or a different operating system to delete the file from outside, it is not really a comfortable option.
A better way to cope with the situation is to 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 start up.
It can do so because the file gets deleted when Windows is not fully running so that the file in question has not been loaded yet.
It should be clear that you can use the freeware on all files, not only malicious files. Sometimes, regular files cannot be deleted as well no matter what you try and do. In this case, Pocket Killbox may help you as well to delete the files on the next reboot of the system.
Just perform a second scan to make sure the virus was really deleted by Pocket Killbox. The program is not the only tool that you can use for that purpose. The previously reviewed File Unlocker or Unlocker can also be used for the very same purpose.
The two programs try to remove any ties a file has with the operating system or processes running on it so that it can be deleted right in the current session without the need to reboot the system at all. They may however have issues with files that have been infected.
Just try both options and start with Unlocker, this is my suggestion as you do not have to reboot your PC if successful. The KillBoc program has not been updated for a while, but it is still working just fine even on newer versions of the Windows operating system.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.