code: public static void deleteKey(String keyName) throws RegistryException {
          checkError(invoke(Methods.REG_DELETE_KEY.get(), keyParts(keyName)));
      }
docs: Deletes a key and all values within it. If the key has subkeys, an
  "Access denied" error will be thrown. Subkeys must be deleted separately.
  
  @param keyName Key name to delete.
  @throws RegistryException