@Transactional
  public void removeAll(long clusterId) {
    List<AlertDefinitionEntity> definitions = findAll(clusterId);
    for (AlertDefinitionEntity definition : definitions) {
      remove(definition);
    }
  }
Removes all {@link AlertDefinitionEntity} that are associated with the
specified cluster ID.

@param clusterId
         the cluster ID.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java