RD, RMDIRsuggest change
RD and RMDIR are the same command.
Removes directories. Per default, only empty directories can be removed.
To create directories, see MD.
rd Dir1 Dir2
rd "My Dir With Spaces"
rd /s Dir1
Removes the directory
Dir1including 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
rd /q /s Dir1
Like above, but without asking for confirmation.
$ 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