void function ( File arg0 ) { if ( arg0 . isDirectory ( ) ) { deleteDirectory ( arg0 ) ; } else { Files . delete ( arg0 . toPath ( ) ) ; } }
deletes a file . if file is a directory , delete it and all sub-directories . the difference between file.delete and this method are : a directory to be deleted does not have to be empty . you get exceptions when a file or directory can not be deleted . java.io.file methods returns a boolean concode_field_sep PlaceHolder placeHolder concode_field_sep void deleteDirectory concode_elem_sep boolean isSymlink concode_elem_sep void cleanDirectory