Delete folder(s)
Syntax
RD pathname
RD /S pathname
RD /S /Q pathname
Key
/S : Delete all files and subfolders
in addition to the folder itself.
Use this to remove an entire folder tree.
/Q : Quiet – do not display YN confirmationPlace any long pathnames in double quotes.
RD does not support wildcards but you can remove several folders in one command by listing the pathname to each.
e.g.
RD c:docsJan c:docsFeb "c:My DocumentsMar"
RMDIR is a synonym for RD