code: func (v VirtualMachine) RemoveSnapshot(ctx context.Context, name string, removeChildren bool, consolidate *bool) (*Task, error) {
  	snapshot, err := v.FindSnapshot(ctx, name)
  	if err != nil {
  		return nil, err
  	}
  
  	req := types.RemoveSnapshot_Task{
  		This:           snapshot.Reference(),
  		RemoveChildren: removeChildren,
  		Consolidate:    consolidate,
  	}
  
  	res, err := methods.RemoveSnapshot_Task(ctx, v.c, &req)
  	if err != nil {
  		return nil, err
  	}
  
  	return NewTask(v.c, res.Returnval), nil
  }
docs: // RemoveSnapshot removes a named snapshot