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

# Delete an API key

> Soft-deletes an API key. The key will be marked as deleted but not permanently removed.



## OpenAPI

````yaml /spec/ai-keys.yaml delete /v1/keys/{keyID}
openapi: 3.0.1
info:
  title: AI - API Keys
  description: >-
    Manage API keys for AI workspace access. API keys are used to authenticate
    inference

    requests (chat completions, embeddings, image generation).


    Parameters:

    - `teamID`: To access services in a team (query param or `x-teamid` header)


    Authentication: JWT Bearer token sent via the `Authorization` header.
  termsOfService: '#'
  contact:
    email: info@liara.ir
  version: 1.0.0
servers:
  - url: https://ai.liara.ir
security:
  - jwt: []
tags:
  - name: API Keys
    description: Manage API keys for AI inference
externalDocs:
  description: Find out more about Liara AI
  url: https://liara.ir
paths:
  /v1/keys/{keyID}:
    delete:
      tags:
        - API Keys
      summary: Delete an API key
      description: >-
        Soft-deletes an API key. The key will be marked as deleted but not
        permanently removed.
      operationId: deleteKey
      parameters:
        - name: keyID
          in: path
          required: true
          description: The API key ID
          schema:
            type: string
            pattern: ^[a-f0-9]{24}$
      responses:
        '204':
          description: Key deleted
          content: {}
        '401':
          description: Missing authentication
          content: {}
        '404':
          description: Key not found
          content: {}
components:
  securitySchemes:
    jwt:
      type: apiKey
      description: 'Enter the token with the `Bearer: ` prefix, e.g. "Bearer abcde12345"'
      name: Authorization
      in: header

````