src/org/kocakosm/pitaya/io/XFiles.java
public static void rm(File... files) throws IOException
	{
		for (File f : files) {
			if (f.exists()) {
				if (f.isDirectory()) {
					rm(f.listFiles());
				}
				if (!f.delete()) {
					throw new IOException("Can't delete " + f);
				}
			}
		}
	}
public static void rm(File... files) throws IOException
	{
		for (File f : files) {
			if (f.exists()) {
				if (f.isDirectory()) {
					rm(f.listFiles());
				}
				if (!f.delete()) {
					throw new IOException("Can't delete " + f);
				}
			}
		}
	}
public static void rm ( File ... files ) throws IOException { for ( File f : files ) { if ( f . exists ( ) ) { if ( f . isDirectory ( ) ) { rm ( f . listFiles ( ) ) ; } if ( ! f . delete ( ) ) { throw new IOException ( "Can't delete " + f ) ; } } } }
Deletes the given {@code File}s. Directories will be recursively
deleted. Named after the Unix command of the same name.

@param files the {@code File}s to delete.

@throws NullPointerException if {@code files} is {@code null} or if
it contains a {@code null} reference.
@throws IOException if one of the specified {@code File}s can't be
deleted.
@throws SecurityException if a security manager exists and denies
read/write access to one of the specified files or its children.
Deletes the given { @code File } s . Directories will be recursively deleted . Named after the Unix command of the same name .