Article is compatible with Microsoft Windows NT/2000/XP/Vista/7 command line.
RD and RMDIR are used within the Windows command shell to remove files, directories, and directory trees.
Syntax:
RD or RMDIR [ /S ] [ /Q ] [ drive: ]path
RD or RMDIR [ /? ]
| drive | The drive you want to delete your directory from. |
| path | The path to the directory. |
| /S | Removes the directoy specified and all of its subdirectories and files. Essentially, it removes an entire directory tree. |
| /Q | A quiet option; used with /S, it surpresses the prompting of confirmation to delete directory trees. |
| /? | Displays the built-in help text. |
Example:
- RD /S /Q C:\test
This will remove all the files and directores inside of test, without prompting for confirmation, and will delete the C:\test folder as well.
For more information on this command, check out the official Microsoft documentation, here.
Popularity: 25% [?]



Thanks for writing, I really enjoyed that post, wish you would post more