More exactly, you can delete it in the following way:
1) Locate the process holding the file and obtain its handle in your process's address space.
2) Using the process handle, call
TerminateProcess
, see
http://msdn.microsoft.com/en-us/library/ms686714(v=vs.85).aspx[
^].
3) Delete the file.
Doing of all this is highly discouraged; you don't want to take the risk of destabilizing your system.
I suggest you only do it for research purpose.
What is the purpose of your Question? I'm sure there is a better resolution, if you explain your
ultimate goals.
—SA