jodd-core/src/main/java/jodd/io/FileUtil.java
public static void delete(final File dest) throws IOException {
		if (dest.isDirectory()) {
			deleteDir(dest);
			return;
		}
		deleteFile(dest);
	}
public static void delete(final File dest) throws IOException {
		if (dest.isDirectory()) {
			deleteDir(dest);
			return;
		}
		deleteFile(dest);
	}
public static void delete ( final File dest ) throws IOException { if ( dest . isDirectory ( ) ) { deleteDir ( dest ) ; return ; } deleteFile ( dest ) ; }
Smart delete of destination file or directory.

@throws IOException if there is an issue deleting the file/directory.
@see #deleteFile(File)
@see #deleteDir(File)
Smart delete of destination file or directory .