rmdir

The command that removes a directory only if it is empty.

In more detail

Its refusal to delete anything with contents makes it a safe way to tidy up. Use rm -r when you really mean to remove a directory and everything in it.

Related terms

Taught in

References