Sometimes it is just not possible to delete a ﬁle. Windows Explorer refuses access to the ﬁle with an error message which says, for instance, that other programs are currently using the ﬁle. The same happens even after you restart the computer. You can delete blocked or restricted files in Windows explorer easily.
Here goes the procedure..
Close all running programs as well as the icons in the system tray.
Now open the prompt using ‘Start > Run’, type ‘cmd’ and click on ‘OK’.
Subsequently open the Task Manager with the keyboard shortcut [CTRL] + [ALT] + [DEL].
Now select the ‘explorer.exe’ entry from the list in the ‘Processes’ tab and click ‘End Process’.
Use the command prompt and navigate to the directory where the ﬁle is located using DOS commands.
For example, if the stubborn document ‘Resume.doc’ is in ‘D:DataDocuments’, switch to this path by entering ‘d:’ in the command prompt and type the following ‘cd datadocuments’. It might now be possible to delete the ﬁle using the command ‘del resume.doc’.
If it still does not work, you will need to reset the ‘Write Protection’, ‘Hidden’ and ‘System’ ﬁle attributes before using the ‘del’ command.
Type the following command in the command prompt to reset the attributes of the ﬁle:
‘attrib –r –h –s resume.doc’.
You can now use the ‘del’ command to delete the stubborn ﬁle. After you are done, bring up the task manager and click on ‘File > New task’ and enter ‘explorer.exe’. You can now close the task manager and begin working as usual.