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

# Remove Permission From Role

> Remove a permission from a role.

Idempotent: removing a permission the role does not hold is a no-op that
still returns 204. Returns 404 when the role itself does not exist.

Managing roles is not exposed to API keys.



## OpenAPI

````yaml /openapi/mio-openapi.json delete /api/v1/roles/{role_id}/permissions/{permission_slug}
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/roles/{role_id}/permissions/{permission_slug}:
    delete:
      tags:
        - roles
      summary: Remove Permission From Role
      description: |-
        Remove a permission from a role.

        Idempotent: removing a permission the role does not hold is a no-op that
        still returns 204. Returns 404 when the role itself does not exist.

        Managing roles is not exposed to API keys.
      operationId: >-
        roles.delete_roles_delete_roles_by_role_id_permissions_by_permission_slug
      parameters:
        - in: path
          name: role_id
          required: true
          schema:
            title: Role Id
            type: string
        - in: path
          name: permission_slug
          required: true
          schema:
            title: Permission Slug
            type: string
      responses:
        '204':
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````