Chat / JavaScript
Chat JavaScript v4
Chat JavaScript
Chat
JavaScript
Home
/
Chat
/
JavaScript
/
Channel
This is the new Docs for Chat SDK v4 for JavaScript. To see the previous Docs, click here.

Delete a channel

The operator of a channel is the only one who can delete the channel.

Note: The following code runs successfully on the client app only for those with operator credentials.

Open channelGroup channel
const channel: OpenChannel = sb.openChannel.getChannel(CHANNEL_URL);
await channel.delete();