Hi@akhtar,
You will find rm command in your Hadoop fs command. This command is similar to the Linux rm command, and it is used for removing a file from the HDFS file system. The command –rmr can be used to delete files recursively. You can see the syntax below.
$ hadoop fs -rm [-f] [-r|-R] [-skipTrash]
$ hadoop fs -rm -r /user/test/sample.txt