rmdir deletes each given directory. The directory must be empty; containing no entries other than
. or
... If
a directory and a subdirectory of that directory are specified as operands, the subdirectory must be specified before the parent so
that the parent directory will be empty when
rmdir attempts to remove it.