RMDIR [drive:]path
RD [drive:]path
Windows 2000 and Windows XP Syntax.
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. |
rmdir c:\test - This would remove the test directory if empty if you want to delete directories that are full use the deltree command.
rmdir c:\test /s -
Windows 2000 and Windows XP users can use this option to permanently
delete the test directory and all subdirectories and files with a
prompt.
APPEND | ARP | ASSOC | AT | ATTRIB | BREAK | CACLS | CALL | CD |
CHCP | CHDIR | CHKDSK | CHKNTFS | CLS | CMD | COLOR | COMMAND | COMP |
COMPACT | CONTROL | CONVERT | COPY | DATE | DEBUG | DEL | DELTREE | DIR 2 |
DIR ... | DISKCOMP | DISKCOPY | DOSKEY | ECHO | EDIT | EDLIN | ERASE | EXIT |
EXPAND | FC | FDISK | FIND | FOR | FORMAT | FTP | GRAFTABL | HELP |
IPCONFIG | LABEL | LOADFIX | MD | MEM | MKDIR | MODE | MORE | MOVE |
MSCDEX | NBTSTAT | NET | NETSTAT | NLSFUNC | NSLOOKUP | PATH | PATHPING | PAUSE |
PING | PROMPT | RD | REN | RENAME | RMDIR | ROUTE | SET | |
SETVER | SHARE | SHUTDOWN | SORT | SUBST | TIME | TREE | TYPE | UNLOCK |
VER | VERIFY | VOL | XCOPY |