In order to remove vIDM configuration from an NSX-T manager cluster remove cluster VIP first.
Cluster VIP can be removed using the following API-
Using postman client:
POST: https://<nsx-manager-fqdn/IP>/api/v1/cluster/api-virtual-ip?action=clear_virtual_ip
Using Curl:
curl -k -H "Content-Type:application/json" -u admin -X POST https://<nsx-manager-fqdn/IP>/api/v1/cluster/api-virtual-ip?action=clear_virtual_ip
Once cluster VIP is removed vIDM configuration can be removed from manager.
Add cluster VIP back after vIDM configuration is removed.