question: public static void cleanupAllFiles ( FileSystem fileSystem , String BaseUri ) throws IOException { try { if ( fileSystem != null ) { Path rootDir = new Path ( BaseUri ) ; FileStatus [ ] files = fileSystem . listStatus ( rootDir ) ; for ( FileStatus file : files ) { fileSystem . delete ( file . getPath ( ) , false ) ; } } } catch ( Exception e ) { LOG . error ( "Error in deleting all files." ) ; } }
target:  Deletes all files in a container