code: func (v VirtualMachine) RemoveAllSnapshot(ctx context.Context, consolidate *bool) (*Task, error) {
  	req := types.RemoveAllSnapshots_Task{
  		This:        v.Reference(),
  		Consolidate: consolidate,
  	}
  
  	res, err := methods.RemoveAllSnapshots_Task(ctx, v.c, &req)
  	if err != nil {
  		return nil, err
  	}
  
  	return NewTask(v.c, res.Returnval), nil
  }
docs: // RemoveAllSnapshot removes all snapshots of a virtual machine