deleteChannel method

Future<void> deleteChannel()

Deletes this channel.

After this method completes successfully, channel event ChannelEventHandler.onChannelDeleted will be invoked

Implementation

Future<void> deleteChannel() async {
  _sdk.api.send(GroupChannelDeleteRequest(channelUrl));
  if (!isPublic) removeFromCache();
}