public static void delete ( final File dest ) throws IOException { if ( dest . isDirectory ( ) ) { deleteDir ( dest ) ; return ; } deleteFile ( dest ) ; }
Smart delete of destination file or directory .