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

# Erase a conversation

> Erase one customer's questions, answers and blocks, and revoke their open sessions. The cost of past questions is kept, without content. Erasing a customer with no conversation also returns `204`. Call it when a customer deletes their account. On Node, call [`conversations.erase`](/reference/node/conversations-erase).



## OpenAPI

````yaml /openapi.yaml delete /api/v1/assistants/{id}/conversations
openapi: 3.1.0
info:
  title: Concatflow API
  version: '1'
  description: >-
    Server-to-server routes behind @concatflow/node. Call them from your backend
    only: the API key must never reach a browser.
servers:
  - url: https://app.concatflow.com
security:
  - apiKey: []
paths:
  /api/v1/assistants/{id}/conversations:
    parameters:
      - $ref: '#/components/parameters/AssistantId'
      - $ref: '#/components/parameters/Partition'
    delete:
      summary: Erase a conversation
      description: >-
        Erase one customer's questions, answers and blocks, and revoke their
        open sessions. The cost of past questions is kept, without content.
        Erasing a customer with no conversation also returns `204`. Call it when
        a customer deletes their account. On Node, call
        [`conversations.erase`](/reference/node/conversations-erase).
      operationId: deleteConversation
      responses:
        '204':
          description: Erased.
        '400':
          $ref: '#/components/responses/InvalidBody'
        '401':
          $ref: '#/components/responses/InvalidApiKey'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/BadPartition'
        '502':
          $ref: '#/components/responses/BackendUnreachable'
components:
  parameters:
    AssistantId:
      name: id
      in: path
      required: true
      description: The assistant's ID.
      schema:
        type: string
        format: uuid
    Partition:
      name: partition
      in: query
      required: true
      description: >-
        The customer's partition: `customer_id=4712`, several pairs joined with
        `,`. URL-encode the whole value. Keys and values must not contain `,` or
        `=`.
      schema:
        type: string
        maxLength: 500
        example: customer_id=4712
  responses:
    InvalidBody:
      description: Malformed body, an ID that is not a UUID, or no `partition`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RelayError'
          example:
            error: invalid_body
    InvalidApiKey:
      description: Missing, wrong or revoked API key. Checked first.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RelayError'
          example:
            error: invalid_api_key
    NotFound:
      description: Unknown assistant, or one from another workspace.
      content:
        application/json:
          schema:
            type: object
            required:
              - detail
            properties:
              detail: {}
    BadPartition:
      description: The `partition` query string cannot be read.
      content:
        application/json:
          schema:
            type: object
            required:
              - detail
            properties:
              detail:
                type: object
                required:
                  - code
                properties:
                  code:
                    const: bad_partition
          example:
            detail:
              code: bad_partition
    BackendUnreachable:
      description: Concatflow could not reach its API. Retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RelayError'
          example:
            error: backend_unreachable
  schemas:
    RelayError:
      type: object
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        Your secret API key, `lyra_sk_…`, from **Settings → Developers → API
        keys**.

````

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