Hellrazor
Contributor
Contributor

Remove VM using VI SDK (Java)?

Jump to solution

Is there a way to quickly unregister a VM and delete it from disk or do I need to get the MOR for the VM, mine the VirtualMachineFileLayoutDiskLayout (and all the other files e.g. nvram, *.log, etc) deleting each file?

Seems like the Perl Toolkit solved this.

Any sample code?

Thx!

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
hrobinson
VMware Employee
VMware Employee
0 Kudos
3 Replies
hrobinson
VMware Employee
VMware Employee

See

0 Kudos
Hellrazor
Contributor
Contributor

Ah Ha!! Couldn't see the forest for the trees!

I was thinking that this method was related to a running task. (I guess that would have been CancelTask)

Thanks for taking the blinders off!

0 Kudos
hrobinson
VMware Employee
VMware Employee

You aren't the only one.

H

0 Kudos