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

# Delete an API key

> Permanently deletes an API key. This action cannot be undone.



## OpenAPI

````yaml /openapi.json delete /dashboard/api-keys/{id}
openapi: 3.0.3
info:
  title: AtlasFlux API
  description: >-
    Unified AI model routing API with intelligent model selection, web search,
    reasoning, and prepaid MYR billing.
  version: 1.0.0
  contact:
    name: Rainspeed Labs
    url: https://atlasflux.my
  license:
    name: Proprietary
servers:
  - url: https://api.atlasflux.my
    description: Production
security:
  - apiKeyAuth: []
paths:
  /dashboard/api-keys/{id}:
    delete:
      tags:
        - Dashboard — API Keys
      summary: Delete an API key
      description: Permanently deletes an API key. This action cannot be undone.
      operationId: deleteApiKey
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: API key deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - clerkAuth: []
components:
  responses:
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      required:
        - type
        - error
      properties:
        type:
          type: string
          enum:
            - error
        error:
          type: object
          required:
            - message
            - type
            - code
            - param
            - request_id
            - guidance
            - action_url
            - retryable
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: string
              enum:
                - invalid_request
                - authentication_error
                - invalid_api_key
                - expired_api_key
                - revoked_api_key
                - permission_denied
                - insufficient_balance
                - spend_limit_exceeded
                - rate_limit_exceeded
                - context_length_exceeded
                - unsupported_input
                - provider_unavailable
                - provider_timeout
                - search_error
                - billing_error
                - idempotency_conflict
                - not_implemented
                - internal_error
            param:
              type: string
              nullable: true
            request_id:
              type: string
            guidance:
              type: string
            action_url:
              type: string
              format: uri
              nullable: true
            retryable:
              type: boolean
            retry_after_seconds:
              type: integer
              minimum: 0
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: af_live_... or af_test_...
      description: AtlasFlux API key. Get yours from the Developer Dashboard.
    clerkAuth:
      type: http
      scheme: bearer
      bearerFormat: Clerk JWT
      description: Clerk session token. Used by the Developer Dashboard.

````

## Related topics

- [API Reference](/api-reference/overview.md)
- [API Keys](/concepts/api-keys.md)
- [Authentication](/authentication.md)
- [List API keys](/api-reference/dashboard-—-api-keys/list-api-keys.md)
- [Create an API key](/api-reference/dashboard-—-api-keys/create-an-api-key.md)
