I have been able to get the following script functioning, although I would not say consistently. I am having problems. It did delete the VMDK and RDMPVMDK for the first two RDMs in my test VM, then errored out.
I will prob post this into the SDK forum... guessing it is more related to that area.
I just took the previous persons "remove-hd.ps1" and modified it to use the new VirtualDiskManager and DeleteVirtualDisk_Task feature
.............and where is the remove-harddisk cmd-let?
____ NOTE
During test,... the script will go through the foreach twice. the $name variable, which houses $dev.backing.filename shows up null after two iterations.
__Final Note
I got it to work.
From Remove-HD.ps1 i did the following.
Changed the deletDatastorefile FileManager task to DeleteVirtualDisk_Task of the VirtualDiskManager.
Then I took the Get-view command out of the function ( it would error out after two iterations.)
If anyone cares for the code I will upload it.