Mega icon

Mega

Work with Mega API

Message → Delete

AI-generated

Summary

Delete a message in a Mega conversation by specifying its conversation ID and message ID.

Inputs

  • Conversation ID (required) — The numeric ID of the Mega conversation containing the message to delete.
  • Message ID (required) — The numeric ID of the message to be deleted within the specified conversation.

Output shape

no body — success/failure only

The operation returns no data body; success or failure depends on the API response status.

Examples

Example 1: Delete a message

Set Conversation ID to the ID of the conversation containing the message and Message ID to the ID of the message to remove.

Links

Discussion