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

# Delete Conversation

> End an ongoing conversation session.



## OpenAPI

````yaml DELETE /v1/conversation/{conversation_id}
openapi: 3.0.3
info:
  title: TruGen Developer Platform API
  version: 1.0.0
  description: OpenAPI specification for MCP endpoint
servers:
  - url: https://api.trugen.ai/v1
security: []
paths:
  /v1/conversation/{conversation_id}:
    delete:
      summary: Delete Conversation
      description: End an ongoing conversation session.
      operationId: deleteConversation
      parameters:
        - name: conversation_id
          in: path
          required: true
          description: The unique identifier of the conversation to end.
          schema:
            type: string
            example: conv_abc123
      responses:
        '200':
          description: Conversation ended and deleted successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  agent_identity:
                    type: string
                    description: >-
                      The identity of the agent associated with the
                      conversation.
                    example: agent-AJ_jMvkNX2n8PsG
                  conversation_id:
                    type: string
                    description: The unique identifier of the conversation that was ended.
                    example: f3418b93-b1ce-496e-aa45-ae2e455c0c75
                  message:
                    type: string
                    description: Confirmation message.
                    example: Conversation ended successfully
              example:
                agent_identity: agent-AJ_jMvkNX2n8PsG
                conversation_id: f3418b93-b1ce-496e-aa45-ae2e455c0c75
                message: Conversation ended successfully
        '401':
          description: Unauthorized – invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: 'Unauthorized: not a valid authorization api key'
        '404':
          description: Conversation not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Conversation not found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Failed to end conversation
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````