(RD) (Remove Directory)
Type: Internal (2.0 and later)
Purpose: Removes a subdirectory.
RMDIR removes directories that are empty. To determine if a directory is empty, use the DIR command to display the directory’s contents. For example, to determine if the directory NEW is empty, enter dir c:\new The display of an empty directory should look like this:
Volume in drive C is DOS1
Directory of C:\NEW . DIR 10-31-98 8:36p .. DIR 10-31-98 8:36p 2 File(s) 17671520 bytes free
To remove the directory NEW from drive C, enter rd c:\new To remove the directory OLD that is within the NEW directory on drive C, enter