SysDeleteMessage
tip
This method is available in Cloud Code scripts only.
Delete the specified message.
| Service | Operation |
|---|---|
| messaging | SYS_DELETE_MESSAGE |
Method Parameters
| Parameter | Description |
|---|---|
| msgId | The id of the message to update. |
| msgVer | The version of the message. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var msgId = "msgId1";
var msgVer = 1;
var messagingProxy = bridge.getMessagingServiceProxy();
var postResult = messagingProxy.sysDeleteMessage(msgId, msgVer);
if (postResult.status == 200) {
// Success!
}
{
"service": "messaging",
"operation": "SYS_DELETE_MESSAGE",
"data": {
"msgId": "msgId1",
"msgVer": 1
}
}
JSON Response
{
"status": 200,
"data": {
}
}
Common Error Code
Status Codes
| Code | Name | Description |
|---|---|---|
| 40601 | FEATURE_NOT_ENABLED | Messaging feature is not enabled for app. |