DELETE

https://{server-url}

/
chat
/
deleteMessageForEveryone
/
{instance}
curl --request DELETE \
  --url https://{server-url}/chat/deleteMessageForEveryone/{instance} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "id": "<string>",
  "remoteJid": "<string>",
  "fromMe": true,
  "participant": "<string>"
}'
{
  "key": {
    "remoteJid": "553198296801@s.whatsapp.com",
    "fromMe": true,
    "id": "BAE5EABBD912C4E2"
  },
  "message": {
    "protocolMessage": {
      "key": {
        "remoteJid": "553198296801@s.whatsapp.com",
        "fromMe": true,
        "id": "BAE52B567D0E3DD8"
      },
      "type": "REVOKE"
    }
  },
  "messageTimestamp": "1718108455",
  "status": "PENDING"
}

Authorizations

apikey
string
headerrequired

Your authorization key header

Path Parameters

instance
string
required

ID of the instance to connect

Body

application/json
id
string
required

Message ID

remoteJid
string
required

Chat contact or group remote JID

fromMe
boolean
required

If the message was sent by the instance owner or the contact

participant
string

Participant for group messages only TODO

Response

201 - application/json
key
object

The key that identifies the message in the chat.

message
object

The content of the message.

messageTimestamp
string

The timestamp of the message, represented as a string.

status
string

The status of the message, such as sent, received, or pending.