Wednesday, 12 February 2014

How to Delete an undeletable file

How to Delete an "Undeletable" File

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.

Try the utility called "unlocker" but if that wont do it try this.

Tip   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: 10278
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: 10487
Size:  61.8 KB

Name:  explorerend.png
Views: 10290
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: 12443
Size:  29.3 KB
5B. - FOLDER - Delete the folder.
Enter Command: RD /S /Q [DRIVE:]\PATH\TO\FOLDER
RD /S /Q C:\Users\[username]\Downloads\FOLDERNAME

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

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

No comments:

Post a Comment