code: public void delete() {
      try {
        getDFS().delete(this.path, true);
  
      } catch (IOException e) {
        e.printStackTrace();
        MessageDialog.openWarning(null, "Delete file",
            "Unable to delete file \"" + this.path + "\"\n" + e);
      }
    }
docs: Does a recursive delete of the remote directory tree at this node.