def do_send_delete_user_group_event(realm: Realm, user_group_id: int, realm_id: int) -> None:
    event = dict(type='user_group', op='remove', group_id=user_group_id)
    send_event(realm, event, active_user_ids(realm_id))
def do_send_delete_user_group_event(realm: Realm, user_group_id: int, realm_id: int) -> None:
    event = dict(type='user_group', op='remove', group_id=user_group_id)
    send_event(realm, event, active_user_ids(realm_id))