≡ Menu

How to Remove a directory/folder in MS-DOS/Command Prompt (CMD.EXE)

Sometimes you need to remove a folder, but the delete button in Windows does not work, so you need to use MS-DOS also called the Command prompt to delete a folder.

Remove directory

All you have to do is browse to your drive then the folder your file is located in by doing a series of CD and DIR commands. You start CMD by going to Start> Run and typing CMD, and pressing enter.

When you found the directory you want to delete. You type RD FolderName /s press enter

and type Y then press enter.

2 comments… add one
  • todd September 18, 2011, 11:46 am

    I have been trying to delete a folder for a couple of months now. Thanks so much for your instructions. They were heplful in FINALLY deleting the folder/directory.

  • Johnson Yip September 18, 2011, 3:58 pm

    No problem, todd. Glad I can help.

Leave a Comment