Search notes:

cmd.exe - rmdir

rmdir deletes directories. rm stands for remove.
C:\> rmdir p:\ath\to\directory
rmdir won't remove a non-empty directory unless /s is specified:
c:\> rdmir /s p:\ath\of\non\empty\directory
p:\ath\of\non\empty\directory, Are you sure (Y/N)?
In order to prevent the Are you sure (Y/N) question, the /q (quiet) flag needs also to be specified. This is especially useful in batch files because this question stops the execution from proceeding.
c:\> rdmir /q /s p:\ath\of\non\empty\directory

See also

Use del to delete files.
The Linux Shell command with the same name.

Index