# RMDIR Command

#### Purpose:

To delete a subdirectory.

#### Syntax:

    RMDIR pathname

#### Comments:

pathname is a string expression, not exceeding 63 characters, identifying the subdirectory to be removed from its parent.

The subdirectory to be deleted must be empty of all files except "." and ".." or a "Path file/access error" is given.

#### Examples:

Referring to the sample directory structure illustrated in CHDIR, the following command deletes the subdirectory report:

    RMDIR "SALES\JOHN\REPORT"