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

# Delete Agent

Delete an AI agent by ID. Pass the ID as a query parameter.

<ParamField query="id" type="string" required>
  The agent ID to delete.
</ParamField>

<ResponseExample>
  ```json 204 No Content theme={null}
  {}
  ```
</ResponseExample>


## OpenAPI

````yaml DELETE /api/v1/agents
openapi: 3.1.0
info:
  title: CasaAI API
  description: >-
    APIs for properties, tenants, maintenance, workflows, agents, finance, and
    documents.
  version: 1.0.0
servers:
  - url: https://api.casaai.dev
security:
  - bearerAuth: []
paths:
  /api/v1/agents:
    delete:
      summary: Delete an agent
      parameters:
        - name: id
          in: query
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Agent deleted
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````