How can I (in C#) purge an Azure service bus's topic subscription using the Microsoft.Azure.ServiceBus package (version 3+)?
I am aware of SO question. But the selected answer seems to use ReceiveBatch() on SubscriptionClient which does not appear to be available anymore(?). SubscriptionClient only really seems to now have RegisterMessageHandler() to handle messages, however using this means my client would never know when the subsciption is actually empty.
Is there a clean way to purge a topic using C#?