code: func (v VirtualMachine) RemoveDevice(ctx context.Context, keepFiles bool, device ...types.BaseVirtualDevice) error {
  	fop := types.VirtualDeviceConfigSpecFileOperationDestroy
  	if keepFiles {
  		fop = ""
  	}
  	return v.configureDevice(ctx, types.VirtualDeviceConfigSpecOperationRemove, fop, device...)
  }
docs: // RemoveDevice removes the given devices on the VirtualMachine