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

# Delete a role

> Deletes a custom role. A role still held by members cannot be deleted (409): give them another role first. System roles cannot be deleted (403). Requires the `manage:write` scope.



## OpenAPI

````yaml https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json delete /v3/manage/roles/{role_id}/
openapi: 3.0.3
info:
  title: Organization Management
  version: '2.0'
  description: Your project description
servers:
  - url: https://api.edenai.run
security: []
paths:
  /v3/manage/roles/{role_id}/:
    delete:
      tags:
        - Roles
      summary: Delete a role
      description: >-
        Deletes a custom role. A role still held by members cannot be deleted
        (409): give them another role first. System roles cannot be deleted
        (403). Requires the `manage:write` scope.
      operationId: manage_roles_destroy
      parameters:
        - in: path
          name: role_id
          schema:
            type: integer
          description: The role's id.
          required: true
      responses:
        '204':
          description: No response body
      security:
        - ManagementKeyAuth: []
components:
  securitySchemes:
    ManagementKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        A management key (created from the organization dashboard or with `POST
        /v3/manage/auth-keys`), sent as `Authorization: Bearer
        <management_key>`. Inference API keys (`sk-eden...`) are not accepted on
        these endpoints.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.