exense-basic-commons/src/main/java/ch/exense/commons/io/FileHelper.java
/**
	 * Deletes a folder recursively
	 * @param folder the {@link File} to be deleted
	 */
Deletes a folder recursively
@param folder the  File to be deleted
Deletes a folder recursively @param folder the File to be deleted
public static void deleteFolder(File folder) {
		File[] files = folder.listFiles();
		if (files != null) {
			for (File f : files) {
				if (f.isDirectory()) {
					deleteFolder(f);
				} else {
					f.delete();
				}
			}
		}
		folder.delete();
	}
public static void deleteFolder ( File folder ) { File [ ] files = folder . listFiles ( ) ; if ( files != null ) { for ( File f : files ) { if ( f . isDirectory ( ) ) { deleteFolder ( f ) ; } else { f . delete ( ) ; } } } folder . delete ( ) ; }
Deletes a folder recursively
 @param folder the {@link File} to be deleted
Deletes a folder recursively @param folder the { @link File } to be deleted