RD

Action: Removes the directory specified.
 
Syntax: RD "directory" [/s]
 
Remarks:

The /s parameter will remove the specified directory including all files and subdirectories below it. CAUTION: Just as its command line counterpart, this file will delete all files including those that are hidden, system and/or read-only. Use this command with great care.

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

See Also:

CD, Copy, Del, MD