RD, RMDIR
suggest changeRD and RMDIR are the same command.
Removes directories. Per default, only empty directories can be removed.
To create directories, seeĀ MD.
Examples:
rd Dir1
rd Dir1 Dir2
rd "My Dir With Spaces"
rd /s Dir1
Removes the directory
Dir1
including all the files and sub-directories in it, asking for confirmation once before proceeding with the removal. To delete files recursively in nested directories with a confirmation per file, useĀ DEL with/s
switch.rd /q /s Dir1
Like above, but without asking for confirmation.
Links:
$ rd /? Removes (deletes) a directory. RMDIR [/S] [/Q] [drive:]path RD [/S] [/Q] [drive:]path /S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree. /Q Quiet mode, do not ask if ok to remove a directory tree with /S
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents