I would like to delete SB topic and their subscription through power-shell script.
I'm able to delete using C# code which available within Microsoft.ServiceBus
namespace and NamespaceManager
class.
public void DeleteSubscription(string topicPath, string name);
But looking for power-shell script?
I got below script which delete entire SB namespace.
Remove-SBNamespace –Name 'ServiceBusDefaultNamespace' -Force
Please suggest script which can delete individual Topic and their subscription. Thanks!
I thought to use some Azure version command, here is update,
I m using command Remove-AzureRmServiceBusTopic -NamespaceName SB-Example1 -TopicName SB-Topic_exampl1
, it's is asking for -ResourceGroup
. Now for on prem Service Bus I don't think we can pass any `ResourceGroup, please suggest