> ## 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.

# Revoke a management key

> Permanently revokes a `manage:read`/`manage:write` management key of the organization. Keys with the `manage:mint` scope cannot be revoked here and return 403; revoke them from the dashboard. Revoking an already revoked key is a no-op. Returns the revoked key. Requires the `manage:mint` scope.



## OpenAPI

````yaml https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json delete /v3/manage/auth-keys/{key_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/auth-keys/{key_id}/:
    delete:
      tags:
        - Management Keys
      summary: Revoke a management key
      description: >-
        Permanently revokes a `manage:read`/`manage:write` management key of the
        organization. Keys with the `manage:mint` scope cannot be revoked here
        and return 403; revoke them from the dashboard. Revoking an already
        revoked key is a no-op. Returns the revoked key. Requires the
        `manage:mint` scope.
      operationId: manage_auth_keys_destroy
      parameters:
        - in: path
          name: key_id
          schema:
            type: string
            format: uuid
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagementKeyRead'
          description: ''
      security:
        - ManagementKeyAuth: []
components:
  schemas:
    ManagementKeyRead:
      type: object
      description: >-
        A management key of the organization. The secret is never included;
        `masked` shows the key

        prefix and last characters for identification. A revoked key has a
        non-null `revoked_at`.
      properties:
        key_id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 200
        scopes:
          type: array
          items:
            $ref: '#/components/schemas/ScopesEnum'
        masked:
          type: string
          readOnly: true
        expire_time:
          type: string
          format: date-time
          nullable: true
        revoked_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - created_at
        - key_id
        - masked
        - name
        - scopes
    ScopesEnum:
      enum:
        - manage:read
        - manage:write
        - manage:mint
      type: string
      description: |-
        * `manage:read` - Read organization members, keys and usage
        * `manage:write` - Create, update and revoke keys and members
        * `manage:mint` - Issue new worker management keys (issuer key)
  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.

````