Removes (deletes) the specified directory.
#include <unistd.h> int rmdir ( const char *path);
(IN) Specifies the path to the directory to delete.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
The directory can be removed only if it is empty and does not contain any files or directories.