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

# Excluir todas as mensagens

> Remove todas as mensagens de uma conversa.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/conversations/{id}/messages
openapi: 3.1.0
info:
  title: Timely.ai API
  description: >-
    API REST do Timely.ai para automação de atendimento com IA. Gerencie
    agentes, conversas, contatos e integrações.
  version: 1.0.0
  contact:
    name: Timely.ai
    email: contato@timelyai.com.br
    url: https://timelyai.com.br
servers:
  - url: https://api.timelyai.com.br
    description: Produção
security:
  - ApiKeyAuth: []
tags:
  - name: System
    description: Health check e introspecção da API key
  - name: Agents
    description: Agentes IA — criação, configuração e gerenciamento
  - name: Trainings
    description: Base de conhecimento dos agentes
  - name: Channels
    description: Canais de comunicação (WhatsApp, Telegram, Email, Website)
  - name: Contacts
    description: Cadastro de clientes
  - name: Conversations
    description: Histórico de conversas e mensagens
  - name: Custom Fields
    description: Campos personalizados do CRM
  - name: Chats
    description: Operações em chats ativos e handoff humano
  - name: Messages
    description: Mensagens individuais
  - name: MCP
    description: Model Context Protocol — servidores e ferramentas
  - name: Webhooks
    description: Webhooks outbound para eventos em tempo real
paths:
  /v1/conversations/{id}/messages:
    delete:
      tags:
        - Conversations
      summary: Excluir todas as mensagens
      description: Remove todas as mensagens de uma conversa.
      operationId: deleteConversationMessages
      parameters:
        - $ref: '#/components/parameters/ConversationId'
      responses:
        '200':
          description: Mensagens excluídas
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    ConversationId:
      name: id
      in: path
      required: true
      description: ID da conversa
      schema:
        type: string
        format: uuid
  schemas:
    DeleteResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            deleted:
              type: boolean
              example: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            status:
              type: integer
  responses:
    Unauthorized:
      description: API key inválida ou ausente
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Recurso não encontrado
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Chave de API obtida no dashboard

````