Removes (deletes) the specified directory
#include <unistd.h>
int rmdir (
const char *pathname);
(IN) Specifies either the absolute or relative directory path containing the directory to delete.
Returns a value of 0 if successful, nonzero otherwise. If an error occurs, errno and NetWareErrno are set.
rmdir also works on the DOS partition.
The directory must not contain any files or directories.
The SetCurrentNameSpace function sets the name space which is used for parsing the path input to rmdir.
NOTE:For NetWare versions before 4.x, rmdir works with only the DOS name space for remote servers.