@Transactional
  public void removeByName(long clusterId, String serviceName, String componentName) {
    ServiceComponentDesiredStateEntity entity = findByName(clusterId, serviceName, componentName);
    if (null != entity) {
      entityManagerProvider.get().remove(entity);
    }
  }
Finds a {@link ServiceComponentDesiredStateEntity} by a combination of cluster id, service and component names.
@param serviceComponentDesiredStates - component names mapped by service names and cluster ids.
@return all found entities according to input map.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ServiceComponentDesiredStateDAO.java