Ze da API icon

Ze da API

WhatsApp API powered by Ze da API - Send messages, manage groups, contacts and more

Actions137

Message Action → Delete Message

AI-generated

Summary

Delete a message from a channel or chat, optionally throttling with batch settings.

Inputs

  • phone (required) — Phone number with country code
  • messageId (required) — ID of the message to act on
  • fromMe — Whether the message was sent by you
  • requestOptions — Options for advanced request control, such as batching
  • allowUnauthorizedCerts — Accept response even if SSL certificate validation fails
  • proxy — HTTP proxy to use, e.g. http://username:password@myproxy:3128
  • timeout — Time in ms to wait for server response before aborting

Output shape

no body — success/failure only

Response body is empty; the operation succeeds if the server returns a 2xx status, otherwise an error is raised.

Examples

Example 1: Delete a specific message you sent from a group

phone: "5511999999999", messageId: "abc123", fromMe: true

Example 2: Delete messages in batches using requestOptions

phone: "5511999999999", messageId: "msg1", requestOptions: {"batching":{"batchSize":50,"batchInterval":1000}}

Links

Discussion