Smartlab Software logo

How to Delete a Rogue Directory

Every once in a while, a directory just won't delete in Windows. Many times Windows will tell you it cannot find the directory. I found that using the RD (remove directory) command does the job. Just provide the path the the errant directory and attributes.

 I generally do not use the /S option because if you accidentally enter in the wrong directory, well, you can guess the results.

If you can't remove a windows directory, try this (from cmd prompt).

RD /S /Q c:\dir\to\delete

RD stands for Remove Directory
/S deletes all subfolder and files
/Q deletes with no more confirmation required

Comments

Add a comment