Answer Posted / Deep Kumar Verma
To delete a file from HDFS, you can use the `hadoop fs -rm` command followed by the path of the file. For example: `hadoop fs -rm /path/to/yourfile`. If you want to recursively delete a directory and its contents, use `-r` or `--recursive` option: `hadoop fs -rm -r /path/to/yourdirectory`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category