Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Use a multiexcerptinclude for Subkey

...

Method

RegistryDeleteValue

ModuleNativeServices
LibraryCore
Action


Excerpt
Delete a registry value.


Parameters

Multiexcerpt include
MultiExcerptNameHiveParameter
PageWithExcerptMethod Notes

Subkey (string): The registry key to look for.

Multiexcerpt include
MultiExcerptNameSubkeyParameter
PageWithExcerptMethod Notes

Name (string): The name of the registry value to delete under the key.

Return values

Status (string): "Deleted value", "Value does not exist", or a registry error message.

Example


Code Block
languageperl
 NativeServices.RegistryDeleteValue(Hive:"HKLM", Subkey:"software\\vendor\\test\\test2", Name:"failedTestValue");


Platforms
  • Windows
Notes

 To delete a registry value for every user under HKU, use NativeServices.RegistryDeleteUserValues.

...