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

# Delete Chat

> Deletes a chat session by ID.

Deletes a chat session by ID.

## Usage

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://app.splox.io/api/v1/chats/0199f200-a11b-7c8d-4444-888890abcdef \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```python Python theme={null}
  from splox import SploxClient

  client = SploxClient(api_key="YOUR_API_KEY")
  client.chats.delete("CHAT_ID")
  ```

  ```typescript Node.js theme={null}
  import Splox from "splox";

  const client = new Splox("YOUR_API_KEY");
  await client.chats.delete("CHAT_ID");
  ```

  ```go Go theme={null}
  client := splox.NewClient("YOUR_API_KEY")
  err := client.Chats.Delete(ctx, "CHAT_ID")
  ```
</CodeGroup>

## Path Parameters

| Parameter | Type          | Description       |
| --------- | ------------- | ----------------- |
| `id`      | string (uuid) | Chat ID to delete |

## Response

Returns **204 No Content** with an empty body on success.

## Notes

<Info>
  **Authentication required.** The authenticated user must own the chat session.
</Info>

<Warning>
  This permanently deletes the chat session. Chat history (messages) is **not** automatically deleted — use [Delete Chat History](/api-reference/delete-chat-history) first if you want to clear messages.
</Warning>


## OpenAPI

````yaml DELETE /chats/{id}
openapi: 3.1.0
info:
  title: Splox API
  description: >-
    Run workflows, manage chats, receive events, and monitor execution via the
    Splox API
  version: 1.0.0
  contact:
    name: Splox Support
    email: support@splox.io
    url: https://community.splox.io
servers:
  - url: https://app.splox.io/api/v1
    description: Production API
security: []
tags:
  - name: MCP
    description: Discover MCP servers, manage connections, and execute MCP tools
  - name: Workflows
    description: List, get, and inspect workflows, versions, and nodes
  - name: Workflow Requests
    description: Run workflows, monitor execution, and retrieve results
  - name: Events
    description: Receive external events via Event Hub webhooks
  - name: Chats
    description: Manage chat sessions for workflow interactions
paths:
  /chats/{id}:
    delete:
      tags:
        - Chats
      summary: Delete Chat
      description: Deletes a chat session by ID.
      operationId: deleteChat
      parameters:
        - name: id
          in: path
          required: true
          description: Chat ID
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Chat deleted successfully (empty body)
        '404':
          description: Chat not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token generated from your Splox account settings. Create tokens at
        https://app.splox.io/account?tab=settings

````