

@require_admin
def delete(self, group_id, user_id):
    user = models.User.get_by_id_and_org(user_id, self.current_org)
    user.groups.remove(int(group_id))
    user.save()
    self.record_event({
        'action': 'remove_member',
        'timestamp': int(time.time()),
        'object_id': group_id,
        'object_type': 'group',
        'member_id': user.id,
    })

dataset/ETHPy150Open getredash/redash/redash/handlers/groups.py GroupMemberResource.delete/original