Name

rmdir

Synopsis

rmdir [options] directories

Deletes the named directories (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 .

Option

-p

Remove directories and any intervening parent directories that become empty as a result; useful for removing subdirectory trees.

Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.