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

# Delete Agent

> Deletes an existing agent using its unique ID.



## OpenAPI

````yaml Delete /delete/{id}
openapi: 3.1.0
info:
  title: Sell Agent API
  description: API reference for Agent Module managing voice-based AI agents in Sell Agent
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://server.sellagent.ai/api/agent
security: []
paths:
  /delete/{id}:
    delete:
      summary: Delete Agent by ID
      description: Deletes an existing agent using its unique ID.
      parameters:
        - name: id
          in: path
          required: true
          description: The unique ID of the agent to delete.
          schema:
            type: string
            example: 686679f702bfb2054ec3d1f0
        - name: x-api-key
          in: header
          required: true
          description: Your API key for authentication
          schema:
            type: string
        - name: Content-Type
          in: header
          required: true
          description: Must be application/json
          schema:
            type: string
            enum:
              - application/json
        - name: x-workspace-id
          in: header
          required: false
          description: Optional Workspace ID. Defaults to user's current workspace.
          schema:
            type: string
      responses:
        '200':
          description: Agent deleted successfully.
          content:
            application/json:
              schema:
                type: object
                example:
                  message: Agent deleted successfully..
        '400':
          description: Bad Request – Invalid ID or headers
          content:
            application/json:
              schema:
                type: object
                example:
                  status: error
                  message: Invalid request format, please check API reference.
        '401':
          description: Unauthorized – API key missing or invalid
          content:
            application/json:
              example:
                status: error
                message: API key is missing or invalid.
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                status: error
                message: An unexpected server error occurred.

````