Undeletable File - Delete
Using command prompt to delete files that explorer.exe is locking.
Published by not so gray matter
20 Apr 2010
|29 May 2014||#6|
| || |
Thanks for the solution.
Something is wrong with explorer in Windows 7 (apart from the annoying copy/calculating etc. while copy/del)
I also thought it had something todo with with ownership, but it hasn't. My trick was always:
takeown.exe /F "*" /a /r /d y (with elevated cmd box) and it worked. But only after a wait.
This owner unknown trouble always start with a explorer map move, an update of a program, or another file operation.
What happens I think is that the file is marked for deletion, ownership already removed, and waits for explorer to remove it from memory(?), so that it can be removed from disk. I have (super-)(pre-)fetch disabled btw.
I hope someone finds the cause of this.
|My System Specs|
|4 Weeks Ago||#9|
| || |
I had this same problem with a desktop folder w/subfolders on WIN 8 64bit machine....Could not delete a couple of 0 byte files no matter what I tried but listed below did the trick.
DOS Command RMDIR - If you have a directory file that cannot be deleted. If trying to delete and you receive an error message that the file cannot be found and you have tried changing permissions and that fails. Usually the file type shows as "file" and size = 0 Make sure there are no existing file(s) you want to keep In the target directory or any sub-directory.
In this case I am using stuff as the target directory
1) Open command prompt as administrator
2) Change to the parent directory ex. C:\Users\bullwinkle\Desktop
3) Type the following RMDIR stuff /s /q
/S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
This can also be done in an elevated command prompt with the del command to target an individual file as well. For help and list of
switches type del /?
|My System Specs|
|Similar help and support threads for2: Undeletable File - Delete|
|Windows 7 Tutorial||Category|
|Undeletable File||Performance & Maintenance|
|How to delete Undeletable folders or files from any Drive||General Discussion|
|Undeletable File||General Discussion|
|User Accounts and/or undeletable file?||General Discussion|
|Mysterious Undeletable File||Performance & Maintenance|
|Undeletable file problem||General Discussion|
|Our Sites ||Site Links ||About Us ||Find Us |
© Designer Media Ltd
All times are GMT -5. The time now is 07:03 AM.