SysDeleteChannel
Deletes a dynamic chat channel. Channel type must be "dy". This will delete the chat history as well.
Service | Operation |
---|---|
chat | SYS_DELETE_CHANNEL |
Method Parameters
Parameter | Description |
---|---|
channelId | The channel id - must be of type 'dy'. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var channelId = "55555:dy:my-dynamic-channel";
var chatProxy = bridge.getChatServiceProxy();
var postResult = chatProxy.sysDeleteChannel(channelId);
if (postResult.status == 200) {
// Success!
}
{
"service": "chat",
"operation": "SYS_DELETE_CHANNEL",
"data": {
"channelId": "55555:dy:my-dynamic-channel"
}
}