static void fullyDelete ( String dir , Configuration conf ) throws IOException { if ( dir != null ) { Path tmp = new Path ( dir ) ; tmp . getFileSystem ( conf ) . delete ( tmp , true ) ; } }
Fully delete dir