Search

hadoop fs -rmr

Recursively deletes the files and sub directories. The usage of rmr is shown below:
hadoop fs -rmr /user/hadoop/dir