rmdir
Delete the named directories (the directory itself, not the contents). directories are deleted from the parent directory and must be empty (if not, rm -r can be used instead). See also mkdir .
rm -r
-p
Remove directories and any intervening parent directories that become empty as a result; useful for removing subdirectory trees.
-s
Suppress standard error messages caused by -p .