One rainy day in the dark past, I compiled a list of things that may help in the process of deleting "stubborn" files and folders. I'll post it for now in case it may help:
1.) Try it in Safe Mode first.
2.) Next, see if you can rename the file so that you change the extension to something that will release it from whatever has it locked; use .txt for example. Then try manipulating it afterward. If it works, then you can change the name back if you just wanted it moved.
3.) If no joy, get MoveOnBoot . Install it. It's a small freeware program that has the power to Delete, Copy, or Rename a file or group of files when you reboot and it's inactive. There are several ways to use it, here are some examples:
Run it to do the copy first to the folder of your choice and then run it again to do a delete if you wish. OR run it and rename the file and you may be able to manipulate it as you please with drag/drop etc. Then you can rename it with the right click and you'll be set. Try different methods as you prefer depending on your goal. It works on Folders as well as files but only by using the drag/drop into the main program screen.
4.) If still no joy, try taking ownership of the file. To do that follow the instructions given here:
5.) If still no joy, create a new administrator account and log off your present account and log into it. Then try moving the file onto the desktop of this new account. Then log off and go back to your original account. That may get the file to an inactive state so you can manipulate it from the new location while logged to the old identity. If you just want to delete it, then delete the old account and all files that it contains.
6.) If still no joy, run Task Manager and do an "End Process" on explorer.exe. The Desktop shell will disappear. This usually releases most problem files from whatever has a grasp on them. You'll have to use the toolbar menu of Task Manager to do your work and when you're finished, you can use the File > New Task(run) to start explorer.exe back up again and get the Desktop shell running again. If you run into difficulty getting explorer.exe back up, just click Shutdown > Restart and you'll get it all back.
Note:On Windows NT/2000/XP:
Open Windows Task Manager. Press CTRL+SHIFT+ESC and click the Processes tab.
In the list of running programs, select EXPLORER.EXE.
Right-click EXPLORER.EXE and click End Process Tree.
On Windows 9x/ME:
Download and install a third-party process viewer like Process Explorer.
Run process viewer,
In the list of running programs, select and terminate the process EXPLORER.EXE.
Close the process viewer.
7.) Run a "Process Detector" software that will give some information on what program has the data that you need to manipulate locked and disable it.
8.) If you have a FAT32 file storage system, boot to a dos boot disk and you can use ordinary dos commands to manipulate the files or folders.
9.) If you have a NTFS file storage system, boot to the install CD and invoke the Recovery Console. Use the command line mode provided to delete the file.
10.) Go to the command prompt in the start menu and type CHKDSK /F.
The system will usually tell you that the action will take place on reboot.
Once the chkdsk is run, the file ACL (access control list) is reset and you should be able to change file / folder properties or delete the file / folder.
NOTE: Some viruses, and programs will relock the files by setting garbage in the ACL soon after booting, so be quick.
11.) Try using WhoLockMe (freeware) to determine what has the files or folder locked.
Note. I'll stop short of recommending that you use a 3rd party tool to convert your system from NTFS to FAT32 in order to be able to manipulate files from a dos prompt but it IS worth mentioning in passing for EXTREME cases.
If none of those methods work, you may need to get a bigger hammer.
Johanna (TY SD2!)