I just downloaded Hortonworks sandbox VM, inside it there are Hadoop with the version 2.7.1. I adding some files by using the
hadoop fs -put /hw1/* /hw1 <
hadoop fs -put /hw1/* /hw1
Try hadoop fs -rm -R URI
hadoop fs -rm -R URI
-R option deletes the directory and any content under it recursively.