question: public static void deleteDirectory ( File directory ) throws IOException { if ( ! directory . exists ( ) ) { return ; } if ( ! isSymlink ( directory ) ) { cleanDirectory ( directory ) ; } Files . delete ( directory . toPath ( ) ) ; }
target:  Deletes a directory recursively. 