// DeleteServiceGroup delete an existing service group
DeleteServiceGroup delete an existing service group
// DeleteServiceGroup delete an existing service group
func (sgmr *ServiceGroupMongoRepository) DeleteServiceGroup(serviceGroupID string) error {
	serviceGroupIdObj := bson.ObjectIdHex(serviceGroupID)
	err := sgmr.Collection.RemoveId(serviceGroupIdObj)
	_, err = sgmr.Db.C(constants.SERVICES_COLLECTION).UpdateAll(bson.M{}, bson.M{"$set": bson.M{"groupid": nil}})
	return err
}
func ( sgmr * ServiceGroupMongoRepository ) DeleteServiceGroup ( serviceGroupID string ) error { serviceGroupIdObj := bson . ObjectIdHex ( serviceGroupID ) err := sgmr . Collection . RemoveId ( serviceGroupIdObj ) _ , err = sgmr . Db . C ( constants . SERVICES_COLLECTION ) . UpdateAll ( bson . M { } , bson . M { " " : bson . M { " " : nil } } ) return err }
DeleteServiceGroup delete an existing service group
DeleteServiceGroup delete an existing service group