I want to delete a directory with files owned by other processes in Windows 7. Other answers say to find the process that is accessing it which I do not want to do.
I tried using PowerShell and couldn't even get past deleting non-empty directories without having to resort to writing a script which I will never ever do.
I tried using the Bash command rm -rf ./directory
and I got the error The process cannot access the file because it is being used by another process
I tried import shutil \ shutil.rmtree('./directory')
in Python and got the same error.
The other process can die, I don't care. It's my file and I'm an administrator. How do I say "I really mean it, I don't care about the consequences, just do what I ask, computer, for the love of all that is good."
Clarification: I do not care and do not want to care which other process is accessing the files. I also would like to use the command line if possible.
Comments
Post a Comment