Mapreduce 2.x :
hadoop fs -rm /path/to/filename
-r, (, MR). , -rmr .
hadoop fs -rm -r /path/to/files
You can add the -skipTrash flag if you delete a large set of files and do not want them to sit until garbage collection occurs.
hadoop fs -rm -r -skipTrash /path/to/files
source
share