Add function to clear subscriptions for the topic

I've added clearSubscriptions to clear subscription for topic and its subtopics without clearing all subscriptions.