hdfs command to delete directory code example Example: hdfs remove directory hdfs dfs -rm -r /path/to/directory