hdfs remove directory with files code example Example: hdfs remove directory hdfs dfs -rm -r /path/to/directory