public boolean isRemovableState() {
    switch (this) {
      case INIT:
      case INSTALLING:
      case INSTALLED:
      case INSTALL_FAILED:
      case UNINSTALLED:
      case UNKNOWN:
      case DISABLED:
        return true;
      default:
        return false;
    }
  }
Indicates whether or not the resource with this state can be removed.

@return true if this is a removable state
ambari-server/src/main/java/org/apache/ambari/server/state/State.java