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

# Delete an agent

> Delete an agent permanently



## OpenAPI

````yaml delete /api/v2/agents/{agentId}
openapi: 3.0.1
info:
  title: LiveChatAI API v2
  description: >-
    LiveChatAI API v2 - Build powerful AI-powered customer support experiences.
    This API follows REST principles with predictable, resource-oriented URLs,
    JSON responses, and standard HTTP methods.
  version: 2.0.0
servers:
  - url: https://app.livechatai.com
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v2/agents/{agentId}:
    delete:
      tags:
        - Agents
      summary: Delete an agent
      description: Delete an agent permanently
      parameters:
        - in: path
          name: agentId
          schema:
            type: string
            example: clx1234567890abcdef
          required: true
          description: Unique identifier of the agent to delete
      responses:
        '200':
          description: Agent deleted successfully
        '401':
          description: Unauthorized access
        '403':
          description: Access denied
        '404':
          description: Agent not found
        '500':
          description: An internal server error occurred.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````