Home » Tips N Tricks   

How to delete folders which refuse to delete


Past few months I had one problem which I always overlooked thinking it will auto correct and the problem is with couple of old folders which I have deleted but stay right there and refuse to get deleted ( Obviously, You cannot die twice!! ). I have tried lot of stuff right from registry to cleaning software and all failed. I finally took a shelter with the good old command prompt to see if it works and it actually did. Below is a video and instruction on how it worked.

Undelete able Folders

Step 1 : Delete files inside that folder :

  • If you do not have any file inside it, skip this step.
  • Type CMD in your Windows Start Menu. You will see cmd.exe listed. Right click and start as administrator.
  • Now navigate to the folder where this notorious folder is visible.
  • Type in “dir/x” to see the list of files. /x is used to see the full name.
  • If you type in the full name after del command, it doesn’t work.
  • Note down the short name of the file is appears left to the full name. It will be in old windows format * 8.1*
  • Type del shortname of the folder.
  • It will prompt that it will delete all the files inside it. Type Y. This will delete all the files from the folder.
Delete Files in a Folder

Step 2: Delete the folder :

  • RMDIR is the command which can delete any directory.
  • Now I could have used it directly but since it not work when the files were in that folder, I chose to delete the files first.
  • Now Type in RMDIR “shortname” of that folder.
  • This will remove the folder now.
  • In case it shows, reboot and it should be gone.
Delete Folders

Video Demo :

Direct link

Related posts:

  1. Free application to permanently delete files and folders
  2. How to find and batch delete empty folders on your system
  3. Secure Delete permanently delete files from your computer
  4. Right-click to find & delete empty folders with Remove Empty Directory
  5. How to Delete files by Date
Tagged with: | Need more help? Make a search below.
Author Details

Posted on 8th August 2011 by , A Professional Tech blogger, Editor and Writer who talks about solving day to day problems of people who use computer. His expertise are in Windows 7, Microsoft Office, Software, Mobile Apps and Video Posts. All posts by | Connect with me @Twitter | Linkedin | Facebook | Stumble