RMDIR(1)                    NetBSD Reference Manual                   RMDIR(1)

NNAAMMEE
     rrmmddiirr - remove directories

SSYYNNOOPPSSIISS
     rrmmddiirr [--pp] _d_i_r_e_c_t_o_r_y _._._.

DDEESSCCRRIIPPTTIIOONN
     The rmdir utility removes the directory entry specified by each _d_i_r_e_c_t_o_r_y
     argument, provided it is empty.

     Arguments are processed in the order given.  In order to remove both a
     parent directory and a subdirectory of that parent, the subdirectory must
     be specified first so the parent directory is empty when rrmmddiirr tries to
     remove it.

     The following option is available:

     --pp      Each _d_i_r_e_c_t_o_r_y argument is treated as a pathname of which all
             components will be removed, if they are empty, starting with the
             last most component.  (See rm(1) for fully non-discriminant re-
             cursive removal.)

     The rrmmddiirr utility exits with one of the following values:

     0       Each directory entry specified by a dir operand referred to an
             empty directory and was removed successfully.

     >0      An error occurred.

SSEEEE AALLSSOO
     rm(1)

SSTTAANNDDAARRDDSS
     The rrmmddiirr utility is expected to be IEEE Std1003.2 (``POSIX.2'') compati-
     ble.

BSD Experimental              September 15, 1996                             1
