I would like automate the primary storage migration I found in Adai documentation https://communities.netapp.com/thread/24437.
Two kind of relinquish are used there, one dfbm and other with dfpm, but I don't know really what is the implication of that and how these steps can be reproduce with NMSDK.
The dfpm dataset relinquish can be done via NMSDK as rick said above.
<dp-relationship-modify> <is-dp-imported>false</is-dp-imported> <is-dp-managed>false</is-dp-managed> <relationship-id>72916</relationship-id> </dp-relationship-modify>
But dfbm relinquish cant be done via NMSDK. This basically removes it from DFM database that such a relationship existed so that you dont face problems which you import them back after migration.