code: public Task removeDevice(VirtualDevice device, boolean destroyDeviceBacking) throws InvalidName, VmConfigFault, DuplicateName, TaskInProgress, FileFault, InvalidState, ConcurrentAccess, InvalidDatastore, InsufficientResourcesFault, RuntimeFault, RemoteException {
          ArrayList<VirtualDevice> deviceList = new ArrayList<VirtualDevice>();
          deviceList.add(device);
          return removeDevices(deviceList, destroyDeviceBacking);
      }
docs: Remove the device. Make sure the VM is powered off before calling this method.
  If destroyDeviceBacking is true, it deletes backings for example files in datastore. BE CAREFUL!