.Dd January 30, 2015 .Dt RMDIR 1 .Os .Sh NAME .Nm rmdir .Nd remove directories .Sh SYNOPSIS .Nm .Op Fl p .Ar directory ... .Sh DESCRIPTION .Nm removes each empty .Ar directory . .Sh OPTIONS .Bl -tag -width Ds .It Fl p Remove .Ar directory and its parents in the pathname .Ar directory . .El .Sh SEE ALSO .Xr rm 1 , .Xr rmdir 2 , .Xr unlink 1 , .Xr unlink 2 .Sh STANDARDS The .Nm utility is compliant with the .St -p1003.1-2008 specification.