public void removeInstanceDefinition(String instanceName) {
    ViewInstanceEntity entity = getInstanceDefinition(instanceName);
    if (entity != null) {
      instances.remove(entity);
    }
  }
Remove an instance definition.

@param instanceName  the instance name
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java