ABC Radio

Pages

Monday 21 July 2014



Undeletable File - Delete

Using command prompt to delete files that explorer.exe is locking.






Information

This tutorial shows you how to delete undeletable files and folders. There are times when explorer.exe somehow locks files into place and won't allow them to be deleted. In order to delete them you must close explorer.exe and use a command prompt to delete the file.




Tip
Be very careful when deleting files through command prompt, it's possible you could accidently delete the wrong file.


1. - Open an elevated command prompt
Start > Search "cmd" > Right Click cmd.exe > Run as Administrator

Name:  opencmd.png
Views: 23269
Size:  23.0 KB
2. - Leave Command prompt open; Open task manager
Undeletable File - Delete-opentm.png
3. - End process "explorer.exe"
Name:  endexphowto.png
Views: 23477
Size:  61.8 KB

Name:  explorerend.png
Views: 23255
Size:  22.2 KB
4. - Switch back to command prompt
Undeletable File - Delete-switchcmd.png
5A. - FILE - Change to the directory of your file and delete it.
First run this line: cd "PATH OF YOUR FILE"
i.e. cd "%USERPROFILE%"\Downloads"
Now run this line: del filename.extension
i.e. del filename.mkv

Name:  commanddelete.png
Views: 25406
Size:  29.3 KB
5B. - FOLDER - Delete the folder.
Enter Command: RD /S /Q [DRIVE:]\PATH\TO\FOLDER
i.e
RD /S /Q C:\Users\[username]\Downloads\FOLDERNAME

Name:  removefolder.png
Views: 24274
Size:  41.6 KB
6. - Switch back to task manager
Undeletable File - Delete-switchtask.png
7. - Restart "explorer.exe"
Name:  newexphowto.png
Views: 23165
Size:  60.6 KB

Name:  newexp.png
Views: 23087
Size:  32.4 KB

No comments:

Post a Comment