rmdir
From NetBSD Wiki
The rmdir(1) utility attempts to remove the directories specified on the command line. It will only remove empty directories.
% rmdir src/
Option -p
% rmdir -p abc/def/ghi
is equivalent to
% rmdir abc/def/ghi % rmdir abc/def % rmdir abc
