question: public static boolean deleteDir ( File dir ) { if ( dir . isDirectory ( ) ) { String [ ] children = dir . list ( ) ; for ( int i = 0 ; i < children . length ; i ++ ) { deleteDir ( new File ( dir , children [ i ] ) ) ; } } return dir . delete ( ) ; }
target:  Deletes all files and subdirectories under "dir".