$ curl cheat.sh/
 cheat:rmdir 
# Command syntax:
rmdir [option] directory_name 

# Outputs a message that the directory is being removed:
rmdir -v directory_name

# adding the -p option deletes the child directory then its parent directory:
rmdir-p directory_name

# Shows the syntax of the command:
rmdir --help

# Get the command version:
rmdir --version

 tldr:rmdir 
# rmdir
# Remove directories without files.
# See also: `rm`.
# More information: <https://www.gnu.org/software/coreutils/rmdir>.

# Remove specific directories:
rmdir path/to/directory1 path/to/directory2 ...

# Remove specific nested directories recursively:
rmdir -p path/to/directory1 path/to/directory2 ...

$
Follow @igor_chubin cheat.sh