> ## Documentation Index
> Fetch the complete documentation index at: https://sure-917046f5-docs-cloudflare-tunnel-self-hosting.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a chat



## OpenAPI

````yaml /openapi.yaml delete /api/v1/chats/{id}
openapi: 3.0.3
info:
  title: Sure API
  version: v1
  description: OpenAPI documentation for the Sure API.
servers:
  - url: https://app.sure.am
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
paths:
  /api/v1/chats/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: Chat ID
        schema:
          type: string
    delete:
      tags:
        - Chats
      summary: Delete a chat
      responses:
        '204':
          description: chat deleted
        '404':
          description: chat not found
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      name: X-Api-Key
      in: header
      description: API key for authentication. Generate one from your account settings.

````