I am trying to improve the uninstall experience of our custom cluster resources. The user of our product can uninstall the product on one of the nodes of the cluster. When the customer uninstalls our product on the passive node, I want to remove that node from the possible owners for the resource type and delete the resource DLL on the passive node.
I do not want to affect our resources on the active nodes. Hence I cannot use DeleteClusterResource and DeleteClusterResourceType APIs on the passive nodes. How do I do this?