rmdir

Deletes a directory.

The usage is as follows:

$ hadoop fs -rmdir [--ignore-fail-on-non-empty] URI [URI ...]
Arguments

--ignore-fail-on-non-empty

When using wildcards, doesn’t fail if a directory still contains files

Example:

$ hadoop fs -rmdir /user/hadoop/emptydir
Found a mistake? Seleсt text and press Ctrl+Enter to report it