Quote from kix2010.doc
Quote:


RD
Action
Removes the directory specified. Note: the directory must be empty for this command to succeed, unless the ‘/s’ option is used.

/s Removes specified directory and all files and subdirectories below it.


Syntax
RD "directory" [/s]

Remarks
Check the value of @ERROR to see if RD was successful.