private void deleteTemporaryFile(File temp) {
        if (!temp.delete()) {
            logger.warn("Temporary file/directory \"{}\" could not be "
                    + "deleted. The file may remain until the JVM exits, or "
                    + "may need to be manually deleted.", temp);
        }
        else
            logger.debug("Deleted temporary file/directory \"{}\".", temp);
    }
Deletes the given temporary file/directory, if possible. If the deletion
operation fails, a warning is logged noting the failure. If the given
file is a directory, it will only be deleted if empty.

@param temp
    The temporary file to delete.
guacamole/src/main/java/org/apache/guacamole/GuacamoleServletContextListener.java