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

# Delete thread

> Deletes a thread and its messages — to purge a conversation, e.g. on a data-erasure request. Organization API key only, from your backend; a session token cannot call it. Not reversible.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/threads/{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/threads/{id}:
    delete:
      tags:
        - Chat
      summary: Delete thread
      description: >-
        Deletes a thread and its messages — to purge a conversation, e.g. on a
        data-erasure request. Organization API key only, from your backend; a
        session token cannot call it. Not reversible.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: thread_2f81c04a
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
                  id:
                    type: string
        '400':
          description: Missing organization context
        '403':
          description: Not an API key
        '404':
          description: Thread not found in this organization
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````

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