VMware {code} Community
Hellrazor
Contributor
Contributor
Jump to solution

Remove VM using VI SDK (Java)?

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
Jump to solution

0 Kudos
3 Replies
hrobinson
VMware Employee
VMware Employee
Jump to solution

See

0 Kudos
Hellrazor
Contributor
Contributor
Jump to solution

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
Jump to solution

You aren't the only one.

H

0 Kudos