Friday, May 22, 2015

How to Delete an "Undeletable" File

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

Undeletable File - Delete-opencmd.png
2. - Leave Command prompt open; Open task manager
Undeletable File - Delete-opentm.png
3. - End process "explorer.exe"
Undeletable File - Delete-endexphowto.png

Undeletable File - Delete-explorerend.png
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

Undeletable File - Delete-commanddelete.png
5B. - FOLDER - Delete the folder.
Enter Command: RD /S /Q [DRIVE:]\PATH\TO\FOLDER
i.e
RD /S /Q C:\Users\[username]\Downloads\FOLDERNAME

Undeletable File - Delete-removefolder.png
6. - Switch back to task manager
Undeletable File - Delete-switchtask.png
7. - Restart "explorer.exe"
Undeletable File - Delete-newexphowto.png

Undeletable File - Delete-newexp.png

No comments:

Post a Comment