> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.select.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke a role from an SSO group

> Revoke a role from a group.

A group's last role cannot be revoked — delete the group instead.



## OpenAPI

````yaml https://api.select.dev/v2/openapi.json delete /sso-groups/{sso_group_id}/roles/{role_id}
openapi: 3.1.0
info:
  title: SELECT API (v2)
  version: 0.1.0
servers:
  - url: https://api.select.dev/v2
    description: SELECT API v2
security: []
paths:
  /sso-groups/{sso_group_id}/roles/{role_id}:
    delete:
      tags:
        - sso-groups
      summary: Revoke a role from an SSO group
      description: |-
        Revoke a role from a group.

        A group's last role cannot be revoked — delete the group instead.
      operationId: >-
        delete_sso_group_role_route_sso_groups__sso_group_id__roles__role_id__delete
      parameters:
        - name: sso_group_id
          in: path
          required: true
          schema:
            type: string
            title: Sso Group Id
        - name: role_id
          in: path
          required: true
          schema:
            type: string
            title: Role Id
        - name: x-tenant-id
          in: header
          required: true
          schema:
            type: string
            description: The organization ID the request is scoped to.
            title: X-Tenant-Id
          description: The organization ID the request is scoped to.
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      description: Organization API key (sl_…).
      scheme: bearer

````