deleteTopic method

Future deleteTopic(
  1. String topicName,
  2. bool hard
)

Delete the topic all together. Requires Owner permission

Implementation

Future deleteTopic(String topicName, bool hard) async {
  var packet = _packetGenerator.generate(packet_types.Del, topicName);
  var data = packet.data as DelPacketData;
  data.what = 'topic';
  data.hard = hard;
  packet.data = data;
  var ctrl = await _send(packet);
  _cacheManager.delete('topic', topicName);
  return ctrl;
}