

@require_admin
def delete(self, group_id):
    group = models.Group.get_by_id_and_org(group_id, self.current_org)
    if (group.type == models.Group.BUILTIN_GROUP):
        abort(400, message="Can't delete built-in groups.")
    group.delete_instance(recursive=True)

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