public void removeConfigType(String configType) {
    if (properties != null) {
      properties.remove(configType);
    }
    if (attributes != null) {
      attributes.remove(configType);
    }
    if (parentConfiguration != null) {
      parentConfiguration.removeConfigType(configType);
    }
  }
Remove all occurrences of a config type
ambari-server/src/main/java/org/apache/ambari/server/topology/Configuration.java