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

# Permanently delete a chat

> Permanently delete one of your chats and the files in its workspace. Account integrations stay connected. If the response is lost, retry the same delete for the same chat ID.

Operation ID: chat_delete.



## OpenAPI

````yaml /openapi/itoflow-public.openapi.json delete /chat-runtime/chats/{chatId}
openapi: 3.1.0
info:
  description: >-
    All Itoflow APIs are experimental and may change without notice. Read-only
    operations marked interactive can be tried from the documentation; the
    others are reference-only.
  title: Itoflow Developer API
  version: 1.0.0
servers:
  - description: Itoflow API
    url: https://api.itoflow.ai
security: []
tags:
  - name: Account
  - name: Billing
  - name: Brokers
  - name: Chat
  - name: Connected MCP servers
  - name: GitHub
  - name: Market data
  - name: Monitors
  - name: Notifications
  - name: Portfolios
  - name: Risk runs
  - name: Sharing and data
  - name: Strategies
paths:
  /chat-runtime/chats/{chatId}:
    delete:
      tags:
        - Chat
      summary: Permanently delete a chat
      description: >-
        Permanently delete one of your chats and the files in its workspace.
        Account integrations stay connected. If the response is lost, retry the
        same delete for the same chat ID.


        Operation ID: chat_delete.
      operationId: chat_delete
      parameters:
        - description: ID of the chat to delete.
          in: path
          name: chatId
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  ok:
                    const: true
                    type: boolean
                required:
                  - ok
                type: object
          description: Success
          headers:
            Cache-Control:
              schema:
                enum:
                  - no-store
                type: string
        '401':
          description: Authentication required.
        '403':
          description: Chat ownership check failed.
        '404':
          description: Chat unavailable.
        '500':
          description: Deletion failed; the chat may still exist. Retry the same delete.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: Itoflow access token issued for the Itoflow API.
      scheme: bearer
      type: http

````

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