If you have ever tried to delete a file or program but get an error message that you “cannot delete file: access is denied,” you know how frustrating these and related error messages can be. These error messages occur due to file-access restrictions that are intended to prevent you from moving, deleting, or renaming a file program, which is in the best interest of the stability of your computer. Though you may sometimes have made a simple error such as leaving the file open when moving it, or actually having a full or write-protected disk, Windows may have the file or related program open in the background and you and need to force the release of this file-access restriction.
A great way to delete a file being used by another program is releasing file-access restrictions using Unlocker. Unlocker is a free program for Windows 2000, XP, 2003, Vista, Server 2008, and Windows 7 that allows users to simply right-click on the problem file to and select Unlocker to access its tools. When right-clicking on the file, and Unlocker is selected, information about the selected file, such as Path Locked, PID, Handle, and Process Path appear. Unlocker Assistant also features the ability to terminate a currently running process, which may be what is preventing the file from opening. Additionally, if the file won’t open due to a message that the file is currently in use (even if it isn’t), Unlocker Assistant can bypass this bug in Windows restriction and will unlock or disable whatever is preventing your access to the file. Using these tools from Unlocker can help you delete a file that be being used by another program — even if you don’t know exactly which program.
You may also want to run a virus check to make sure that the file you want to delete, but is being held open by another program, is not being done so by malware. If you find that your files are often held hostage in the background, consider running a virus scan to detect trojans, malware, and spyware that may be affecting your ability to delete files. If using a program like Unlocker doesn’t work, clearing your computer of malware may help you finally be able to delete that file “Being Used by Another Program.”