Delete Registry Key

Deletes the given registry value.

Input Parameters

Name Type Required Description
Base String Yes The base of the key, HKCU or HKLM.
Key String Yes The full path of the registry key to be deleted, not including the base, where the search will start.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
Base String Yes HKLM
Key String Yes SYSTEM\CurrentControlSet\services\WinDefend