rmdir
Deletes a directory.
The usage is as follows:
$ hadoop fs -rmdir [--ignore-fail-on-non-empty] URI [URI ...]
--ignore-fail-on-non-empty |
When using wildcards, doesn’t fail if a directory still contains files |
Example:
$ hadoop fs -rmdir /user/hadoop/emptydir