SysDeleteChannel
Deletes a dynamic chat channel. Channel type can be "dy" or "sy". This will delete the chat history as well.
Service | Operation |
---|---|
chat | SYS_DELETE_CHANNEL |
Method Parameters
Parameter | Description |
---|---|
channelId | The channel id - can be of type 'dy' or 'sy'. |
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 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"
}
}