VMware {code} Community
johndemic
Contributor
Contributor

UnregisterVM and Deleting from Disk

Hey All,

Does anyone know how to unregister a VM then delete it from disk? I'm sending an UnregisterVM message, which is successfully removing the VM from the inventory, but its failing to remove it from the datastore.

Any help would be appreciated,

-jd

Reply
0 Kudos
2 Replies
stumpr
Virtuoso
Virtuoso

Have you looked at Destroy_Task?

Reuben Stump | http://www.virtuin.com | @ReubenStump
Reply
0 Kudos
johndemic
Contributor
Contributor

That did it, thanks!

Reply
0 Kudos