[vbox-dev] programatically deleting snapshots

Klaus Espenlaub klaus.espenlaub at oracle.com
Tue Jun 14 17:38:40 GMT 2011

On 11.06.2011 23:41, wac wrote:
> Hi:
> I am trying to handle snapshots for a virtual machine using the java API and I found that it creates them properly but when I try to delete them virtualbox ends up ignoring the command without even throwing an exception. I am doing this with the webserver interface for 64 bits virtualbox. I tried with both the VM turned on and off. Turned on can't create snapshots. Turned off does crate new ones but doesn't deletes them.
> This is the code snippet I am using:
> IProgress p;
> ISnapshot snap = m.findSnapshot("update snapshot");
> p = console.deleteSnapshot(snap.getId());
> p.waitForCompletion(-1);
> p.releaseRemote();
> snap.releaseRemote();
> Any help or guide will be appreciated.

The "turned on/off" comment above sounds to me like you're not using the 
right console objects.


> Regards
> Waldo

More information about the vbox-dev mailing list