code: public void deleteRegistryKeyInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean recursive) throws GuestComponentsOutOfDate, GuestOperationsFault,
          GuestOperationsUnavailable, GuestPermissionDenied, GuestRegistryKeyHasSubkeys, GuestRegistryKeyInvalid, InvalidGuestLogin, InvalidPowerState, InvalidState, OperationDisabledByGuest,
          OperationNotSupportedByGuest, RuntimeFault, TaskInProgress, RemoteException {
          getVimService().deleteRegistryKeyInGuest(getMOR(), vm.getMOR(), auth, keyName, recursive);
      }
docs: Delete a registry key.
  
  @param vm        Virtual machine to perform the operation on.
  @param auth      The guest authentication data.
  @param keyName   The path to the registry key to be deleted.
  @param recursive If true, the key is deleted along with any subkeys (if present). Otherwise, it shall only delete the key if it has no subkeys.
  @throws GuestComponentsOutOfDate
  @throws GuestOperationsFault
  @throws GuestOperationsUnavailable
  @throws GuestPermissionDenied
  @throws GuestRegistryKeyHasSubkeys
  @throws GuestRegistryKeyInvalid
  @throws InvalidGuestLogin
  @throws InvalidPowerState
  @throws InvalidState
  @throws OperationDisabledByGuest
  @throws OperationNotSupportedByGuest
  @throws RuntimeFault
  @throws TaskInProgress
  @throws RemoteException