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

# Delete Chat

> Deletes a specific chat and all associated data for the authenticated user

## Path Parameters

<ParamField path="id" type="string" required>
  Chat ID to delete
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the chat was deleted successfully
</ResponseField>

<ResponseField name="message" type="string">
  Success or error message
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url https://api.yourdomain.com/api/chats/chat_123abc \
    --header 'Authorization: Bearer <token>'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.yourdomain.com/api/chats/chat_123abc', {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer <token>'
    }
  });

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  url = "https://api.yourdomain.com/api/chats/chat_123abc"
  headers = {"Authorization": "Bearer <token>"}

  response = requests.delete(url, headers=headers)
  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "success": true,
    "message": "Chat deleted successfully"
  }
  ```

  ```json 401 - Unauthorized theme={null}
  {
    "success": false,
    "message": "Unauthorized"
  }
  ```

  ```json 404 - Not Found theme={null}
  {
    "success": false,
    "message": "Chat not found"
  }
  ```
</ResponseExample>

## Notes

<Warning>
  This action is **irreversible**. Deleting a chat will also delete:

  * All messages in the chat
  * All votes associated with messages
  * All streams created for the chat
  * Any other associated data
</Warning>
