RD or RMDIR
(from Remove Directory)
Deletes a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
Where:
/S
- Also removes all subdirectories and files of the specified directory./Q
- Does not display confirmation for directory deletion when used with/S
.[drive:]path
- Specifies the path of the directory to delete.
Without the /S
option, only empty directories can be deleted.
Example: Delete the directory C:\All the World
and all its contents without asking for confirmation (HELP!!!):
rd /s /q "C:\All the World"
or:
rmdir /s /q "C:\All the World"
Comments