def delete_role(self, name_or_id):
        role = self.get_role(name_or_id)
        if role is None:
            self.log.debug(
                "Role {0} not found for deleting".format(name_or_id))
            return False

        with _utils.shade_exceptions("Unable to delete role {name}".format(
                name=name_or_id)):
            self.manager.submitTask(_tasks.RoleDelete(role=role['id']))

        return True
Delete a Keystone role.
dataset/ETHPy150Open openstack-infra/shade/shade/operatorcloud.py/OperatorCloud.delete_role