RD /S pathname
RD /S /Q pathname
/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.
RD c:docsJan c:docsFeb "c:My DocumentsMar"
RMDIR is a synonym for RD