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

# Delete an agent

> Deletes a saved agent and its run history. Stored data-store rows are kept, with the agent id cleared. See [Agents](/guides/agents).



## OpenAPI

````yaml /api-reference/agents.json delete /v1/agent/{agent_id}
openapi: 3.1.0
info:
  title: SynapsAI Agents API
  version: 1.0.0
servers:
  - url: https://api.synapsai.cloud
    description: Production server
security: []
paths:
  /v1/agent/{agent_id}:
    delete:
      summary: Delete an agent
      description: >-
        Deletes a saved agent and its run history. Stored data-store rows are
        kept, with the agent id cleared. See [Agents](/guides/agents).
      operationId: deleteAgent
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Agent deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletedAgent'
        '404':
          description: Agent not found
components:
  schemas:
    DeletedAgent:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          enum:
            - agent.deleted
        deleted:
          type: boolean

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.