wz2cool commented on issue #3660:
URL: https://github.com/apache/rocketmq/issues/3660#issuecomment-996564058
here is code, I use
```
private void deleteSubscriptionGroup(String topic, String consumerGroup)
throws RemotingException, MQClientException,
InterruptedException, MQBrokerException {
final TopicRouteData topicRouteData =
this.mqAdmin.examineTopicRouteInfo(topic);
if (CollectionUtils.isEmpty(topicRouteData.getBrokerDatas())) {
return;
}
for (BrokerData brokerData : topicRouteData.getBrokerDatas()) {
for (Map.Entry<Long, String> entry :
brokerData.getBrokerAddrs().entrySet()) {
String brokerAddr = entry.getValue();
this.mqAdmin.deleteSubscriptionGroup(brokerAddr,
consumerGroup, true);
}
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]