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

# Apagar mensagem para todos

> Apaga uma mensagem para todos os participantes da conversa.



## OpenAPI

````yaml openapi.evolution-v2.pt.json DELETE /chat/deleteMessageForEveryone/{instance}
openapi: 3.1.0
info:
  title: Evolution V2 Layer
  version: 1.0.0
  description: >-
    Camada de API do Pilot Status — Evolution V2. Base URL
    `https://pilotstatus.com.br/api/layer/evolution-v2`. Autentique com o header
    `apikey` (sua chave `ps_` do Pilot Status). Endpoints de instância/sessão
    NÃO estão disponíveis na camada.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-v2
security:
  - apiKey: []
tags:
  - name: Chamada e Business
  - name: Chat
  - name: Grupo
  - name: Etiqueta (Label)
  - name: Mensagem
  - name: Perfil
  - name: Configurações e Proxy
  - name: Armazenamento (S3)
  - name: Template
paths:
  /chat/deleteMessageForEveryone/{instance}:
    delete:
      tags:
        - Chat
      summary: Apagar mensagem para todos
      description: Apaga uma mensagem para todos os participantes da conversa.
      operationId: delete__chat_deleteMessageForEveryone_instance
      parameters:
        - name: instance
          in: path
          required: true
          schema:
            type: string
          description: O nome de exibição do número no painel do Pilot Status.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  description: Identificador da mensagem a ser apagada.
                  example: BAE5F5A632EAE722
                fromMe:
                  type: boolean
                  description: Indica se a mensagem foi enviada por este número.
                  example: true
                remoteJid:
                  type: string
                  description: JID da conversa à qual a mensagem pertence.
                  example: 1203630000000000000@g.us
                participant:
                  type: string
                  description: JID do participante (para mensagens de grupo).
                  example: 5511999999999@s.whatsapp.net
              required:
                - id
                - fromMe
                - remoteJid
      responses:
        '200':
          description: Sucesso — corpo de resposta nativo do provedor.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Baileys WAMessage returned from the revoke (delete) send;
                  carries a protocolMessage of type REVOKE referencing the
                  deleted message.
                properties:
                  key:
                    type: object
                    description: Message key of the revoke message.
                    properties:
                      remoteJid:
                        type: string
                        description: Chat JID the revoke was sent to.
                      fromMe:
                        type: boolean
                        description: Whether the revoke was sent by this account.
                      id:
                        type: string
                        description: Message id of the revoke message.
                      participant:
                        type: string
                        description: Group participant JID, present in group chats.
                  message:
                    type: object
                    description: Message payload containing the protocolMessage.
                    properties:
                      protocolMessage:
                        type: object
                        properties:
                          key:
                            type: object
                            description: Key of the original message being revoked.
                            properties:
                              remoteJid:
                                type: string
                              fromMe:
                                type: boolean
                              id:
                                type: string
                          type:
                            type: string
                            description: >-
                              Protocol message type, "REVOKE" for
                              delete-for-everyone.
                  messageTimestamp:
                    type: integer
                    description: Unix timestamp (seconds) of the revoke message.
                  status:
                    type: string
                    description: Delivery status, e.g. "PENDING".
              example:
                key:
                  remoteJid: 5511999999999@s.whatsapp.net
                  fromMe: true
                  id: BAE5F5A632EAE722
                message:
                  protocolMessage:
                    key:
                      remoteJid: 5511999999999@s.whatsapp.net
                      fromMe: true
                      id: 3EB0C767D26A1D8A0F1B
                    type: REVOKE
                messageTimestamp: 1720544400
                status: PENDING
        default:
          description: Erro — erro do provedor ou da camada.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Your Pilot Status API key (ps_...). Evolution GO also accepts
        `Authorization: Bearer <key>`.

````