evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

how to delete message for everyone? Error while deleting message for everyone

Open seth-shi opened this issue 6 months ago • 2 comments

Welcome!

  • [x] Yes, I have searched for similar issues on GitHub and found none.

What did you do?

 curl -X DELETE "https://zzz.com/chat/deleteMessageForEveryone/zzzz" \
>   -H "apikey: zzzz" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "id": "zzz",
>     "remoteJid": "[email protected]",
>     "fromMe": false
>   }'

{"status":500,"error":"Internal Server Error","response":{"message":["Error while deleting message for everyone","SessionError: No sessions"]}}% 

Client name: evolution_exchange Version: 2.2.3

What did you expect?

delete success

What did you observe instead of what you expected?

Error while deleting message for everyone

Screenshots/Videos

No response

Which version of the API are you using?

Client name: evolution_exchange Version: 2.2.3

What is your environment?

Docker

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

seth-shi avatar May 22 '26 02:05 seth-shi

Hey, I believe you should use a more recent version. But from what I can see in your error, it looks like you're trying to delete a message that isn't yours (fromMe: false).

Have you tried deleting a message with fromMe: true to see if the issue still happens?

dennys1994 avatar May 22 '26 11:05 dennys1994

thanks your reply, but I am a group admin, i want to manager group message, likes some bad message, i want to delete it

seth-shi avatar May 27 '26 06:05 seth-shi