Skip to main content

Delete a broadcast message

Delete a broadcast message sent to all users. By default, this API sends a delete command that removes the original message on mobile clients and replaces it with a deletion notification (RC:RcNtf).

Supports deleting messages sent via:

tip

The delete command is stored in message history. Mobile SDKs handle the deletion logic internally.

Request

POST: https://[Base URL](/platform-chat-api/base-url)/v4/system-channel/message/broadcast/delete

Rate limit: 2 per hour, 3 per day (calendar day).

Authentication: All server API requests require signature verification. See API request signing.

Request body

Content type: application/json

ParameterTypeRequiredDescription
fromUserIdStringYesSender user ID of the original message.
messageUIDStringYesUnique message ID of the message to delete. Currently only obtainable from message history logs (field: msgUID).
sentAtNumberNoSend time of the original message. Obtainable from message history logs (field: dateTime).
isAdminNumberNoWhether the deletion is an admin action. Default: 0.
isDeleteNumberNoDefault: 0 (replace with a deletion notification). 1: delete without showing a notification.
extraStringNoCustom extension data.
disableUpdateLastMsgBooleanNoPrevent updating the last message in the channel list.

Request example

HTTP
POST /v4/system-channel/message/broadcast/delete HTTP/1.1
Host: api.sg-light-api.com
App-Key: uwd1c0sxdlx2
Nonce: 14314
Timestamp: 1408710653491
Signature: 45beb7cc7307889a8e711219a47b7cf6a5b000e8
Content-Type: application/json

{
"fromUserId": "fDR2cVpxxR5zSMUNh3yAwh",
"messageUID": "5FGT-7VA9-G4DD-4V5P",
"sentAt": 1507778882124
}

Response

PropertyTypeDescription
codeNumberStatus code. 0 indicates success.

Response example

HTTP
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{"code":0}