Reg_DeleteKey

Description

Deletes specified key in registry. Fails if any sub key exists. Recommended for safe Registry-handling.

 

Syntax

Reg_DeleteKey(sHandle, sKey) as Boolean

 

Parameters

sHandle (String)

HKEY-handle

sKey (String)

Subkey to delete

 

Example

VBScript
If bStatus Then bStatus = Reg_DeleteKey("HKLM", "Software\KeyName")

Scripting Guidelines

 

Related functions

Registry Functions