Preventing inadvertent deletion of directories
You can prevent inadvertent deletion of important data from your HDFS cluster by marking specific directories as protected. Marking a directory as protected prevents its recursive deletion. However, this does not protect against graceful deletion of files under the directory. You can delete the files by moving them to trash.