@Override
  @Transactional
  public void delete() {
    configGroupConfigMappingDAO.removeAllByGroup(configGroupId);
    configGroupHostMappingDAO.removeAllByGroup(configGroupId);
    configGroupDAO.removeByPK(configGroupId);
    cluster.refresh();
  }
Persist config group config mapping and create configs if not in DB

@param clusterEntity
@throws Exception
ambari-server/src/main/java/org/apache/ambari/server/state/configgroup/ConfigGroupImpl.java