HDFS Notes
  • Introduction
  • Commands
    • Removing all the files at once
    • Remove Directory
  • Change Block size of existing files in Hadoop
Powered by GitBook
On this page

Was this helpful?

  1. Commands

Removing all the files at once

Removing all the files at once

include a wildcard character \* after the desired folder you want to delete, to avoid deleting the parent folder. Please look at the example below:

hdfs dfs -rm -r /home/user/folder/\*
PreviousCommandsNextRemove Directory

Last updated 5 years ago

Was this helpful?