Evolution V2
Delete message for everyone
Deletes a message for all participants in the chat.
DELETE
/
chat
/
deleteMessageForEveryone
/
{instance}
Delete message for everyone
curl --request DELETE \
--url https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"id": "BAE5F5A632EAE722",
"fromMe": true,
"remoteJid": "1203630000000000000@g.us",
"participant": "5511999999999@s.whatsapp.net"
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}"
payload = {
"id": "BAE5F5A632EAE722",
"fromMe": True,
"remoteJid": "1203630000000000000@g.us",
"participant": "5511999999999@s.whatsapp.net"
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'BAE5F5A632EAE722',
fromMe: true,
remoteJid: '1203630000000000000@g.us',
participant: '5511999999999@s.whatsapp.net'
})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'BAE5F5A632EAE722',
'fromMe' => true,
'remoteJid' => '1203630000000000000@g.us',
'participant' => '5511999999999@s.whatsapp.net'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}"
payload := strings.NewReader("{\n \"id\": \"BAE5F5A632EAE722\",\n \"fromMe\": true,\n \"remoteJid\": \"1203630000000000000@g.us\",\n \"participant\": \"5511999999999@s.whatsapp.net\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"BAE5F5A632EAE722\",\n \"fromMe\": true,\n \"remoteJid\": \"1203630000000000000@g.us\",\n \"participant\": \"5511999999999@s.whatsapp.net\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"BAE5F5A632EAE722\",\n \"fromMe\": true,\n \"remoteJid\": \"1203630000000000000@g.us\",\n \"participant\": \"5511999999999@s.whatsapp.net\"\n}"
response = http.request(request)
puts response.read_body{
"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"
}{
"status": 400,
"error": "Bad Request",
"message": "Invalid payload"
}Authorizations
Your Pilot Status API key (ps_...). Evolution GO also accepts Authorization: Bearer <key>.
Path Parameters
The number's display name in the Pilot Status dashboard.
Body
application/json
Message id to delete.
Example:
"BAE5F5A632EAE722"
Whether the message was sent by this number.
Example:
true
Chat JID the message belongs to.
Example:
"1203630000000000000@g.us"
Participant JID (for group messages).
Example:
"5511999999999@s.whatsapp.net"
Response
Success — provider-native response body.
Baileys WAMessage returned from the revoke (delete) send; carries a protocolMessage of type REVOKE referencing the deleted message.
Was this page helpful?
⌘I
Delete message for everyone
curl --request DELETE \
--url https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"id": "BAE5F5A632EAE722",
"fromMe": true,
"remoteJid": "1203630000000000000@g.us",
"participant": "5511999999999@s.whatsapp.net"
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}"
payload = {
"id": "BAE5F5A632EAE722",
"fromMe": True,
"remoteJid": "1203630000000000000@g.us",
"participant": "5511999999999@s.whatsapp.net"
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'BAE5F5A632EAE722',
fromMe: true,
remoteJid: '1203630000000000000@g.us',
participant: '5511999999999@s.whatsapp.net'
})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'id' => 'BAE5F5A632EAE722',
'fromMe' => true,
'remoteJid' => '1203630000000000000@g.us',
'participant' => '5511999999999@s.whatsapp.net'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}"
payload := strings.NewReader("{\n \"id\": \"BAE5F5A632EAE722\",\n \"fromMe\": true,\n \"remoteJid\": \"1203630000000000000@g.us\",\n \"participant\": \"5511999999999@s.whatsapp.net\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"BAE5F5A632EAE722\",\n \"fromMe\": true,\n \"remoteJid\": \"1203630000000000000@g.us\",\n \"participant\": \"5511999999999@s.whatsapp.net\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/api/layer/evolution-v2/chat/deleteMessageForEveryone/{instance}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"BAE5F5A632EAE722\",\n \"fromMe\": true,\n \"remoteJid\": \"1203630000000000000@g.us\",\n \"participant\": \"5511999999999@s.whatsapp.net\"\n}"
response = http.request(request)
puts response.read_body{
"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"
}{
"status": 400,
"error": "Bad Request",
"message": "Invalid payload"
}