public VcTask removeAllSnapshots(final IVcTaskCallback callback) throws Exception {
VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
public VcTask body() throws Exception {
VirtualMachine vm = getManagedObject();
return new VcTask(TaskType.RemoveSnap,
vm.removeAllSnapshots(true),
callback);
}
});
return task;
}