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

> Delete an AI Gateway access key configuration by ID.

# Delete an AI Gateway access key configuration



## OpenAPI

````yaml openapi/ai-gateway.yaml DELETE /access-key-configurations/{id}
openapi: 3.0.3
info:
  title: AI Gateway APIs
  version: 0.1.0
  description: |
    Control-plane HTTP APIs served by the ai-gateway-control service.
servers:
  - url: https://api.ngrok.ai
security:
  - bearerAuth: []
tags:
  - name: AI Gateway Access Key Configurations
    description: Manage reusable access key configurations (scope and routing rules).
  - name: AI Gateway Access Keys
    description: Manage ngrok-managed access keys associated with AI Gateway endpoints.
  - name: AI Gateway Configuration
    description: >-
      Manage per-account AI Gateway configuration (timeouts, token caps,
      metadata).
  - name: AI Gateway API Keys
    description: Manage customer-facing AI Gateway API Keys.
  - name: AI Gateway Credits
    description: Purchase AI Gateway credits via Stripe Checkout.
  - name: AI Gateway Providers
    description: Manage AI Gateway providers and the models they expose.
  - name: AI Gateway Custom Providers
    description: Manage custom AI Gateway providers and the models they expose.
  - name: AI Gateway Provider Keys
    description: Manage provider keys attached to AI Gateway managed access keys.
  - name: AI Gateway Usage
    description: >-
      Read-only AI Gateway usage events and aggregated usage overview for the
      authenticated account.
paths:
  /access-key-configurations/{id}:
    parameters:
      - $ref: '#/components/parameters/AIGatewayAccessKeyConfigurationID'
    delete:
      tags:
        - AI Gateway Access Key Configurations
      summary: Delete an AI Gateway access key configuration
      description: |
        Delete an AI Gateway access key configuration by ID.
        Fails when the configuration is still referenced by an access key.
      operationId: DeleteAIGatewayAccessKeyConfiguration
      responses:
        '204':
          description: The AI Gateway access key configuration was deleted.
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    AIGatewayAccessKeyConfigurationID:
      name: id
      in: path
      required: true
      description: Unique identifier for an AI Gateway access key configuration.
      schema:
        type: string
  responses:
    Error:
      description: API error response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      additionalProperties: false
      required:
        - statusCode
        - msg
        - details
      properties:
        errorCode:
          type: string
          description: Stable ngrok error code when available.
        statusCode:
          type: integer
          format: int32
          description: HTTP status code for this error.
        msg:
          type: string
          description: Human-readable error message.
        details:
          type: object
          description: Structured error details.
          additionalProperties:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````