How to delete a directory in hadoop which has the '[' character in its name How to delete a directory in hadoop which has the '[' character in its name hadoop hadoop

How to delete a directory in hadoop which has the '[' character in its name


I managed to delete it by using a wildcard (*) in the command.

hadoop fs -rmr /hadoo*

I guess "deleting everything that start with the string before faulty character" is good enough.

NOTE: If you use this and you have other directories with a similar name don't use -skipTrash to be able to recover the other directories