question: public static void delete ( File resourceToDelete ) throws IOException { if ( resourceToDelete . exists ( ) ) { delete ( resourceToDelete . toPath ( ) ) ; } }
target:  Deletes a single file or recursively a folder with its content.