@Transactional
  public void removeAll(Long clusterId) {
    List<TopologyRequestEntity> clusterTopologyRequests = findByClusterId(clusterId);
    for (TopologyRequestEntity topologyRequestEntity: clusterTopologyRequests)
      remove(topologyRequestEntity);
  }
Removes all {@link TopologyRequestEntity} that are associated with the specified cluster ID.
@param clusterId the cluster ID.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/TopologyRequestDAO.java