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

# Delete agent

> Soft-deletes the agent. Blocked with 409 if another agent lists this agent as a subagent, or a network references it (pass `?force=true` to override).



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/agents/{id}
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/agents/{id}:
    delete:
      tags:
        - Agents
      summary: Delete agent
      description: >-
        Soft-deletes the agent. Blocked with 409 if another agent lists this
        agent as a subagent, or a network references it (pass `?force=true` to
        override).
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: 6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10
        - name: force
          in: query
          required: false
          schema:
            type: boolean
            example: false
      responses:
        '200':
          description: Soft-deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
                  id:
                    type: string
                    format: uuid
              example:
                deleted: true
                id: 6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10
        '404':
          description: Not found
        '409':
          description: Referenced elsewhere
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````