public boolean delete() throws IOException {
  try {
    return file.delete();
  }
  finally {
    close();
  }
}

public boolean delete ( ) throws IOException { try { return file . delete ( ) ; } finally { close ( ) ; } }
closed any open channels and then deletes the file .
