@Transactional
  public void remove(AlertGroupEntity alertGroup, boolean fireEvent) {
    entityManagerProvider.get().remove(merge(alertGroup));
    if (fireEvent) {
      AlertGroupsUpdateEvent alertGroupsUpdateEvent = AlertGroupsUpdateEvent.deleteAlertGroupsUpdateEvent(
          Collections.singletonList(alertGroup.getGroupId()));
      STOMPUpdatePublisher.publish(alertGroupsUpdateEvent);
    }
  }
Removes the specified alert group from the database.

@param alertGroup the group to remove.
@param fireEvent should alert group update event to be fired.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java