Only the operators of the channel are allowed to delete a channel. To delete a channel, follow the code below.
const channel = sb.openChannel.getChannel(CHANNEL_URL); await channel.delete();
const channel = sb.groupChannel.getChannel(CHANNEL_URL); await channel.delete();