question: public static void delete ( File fileOrFolder ) throws IOException { if ( fileOrFolder != null ) delete ( fileOrFolder . toPath ( ) ) ; }
target:  A method that will delete a file or folder. Folders are removed recursively.