Skip to content

Reg_DeleteKey

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

If the key doesn’t exist, the function writes a log entry and returns TRUE.

Reg_DeleteKey(sHandle, sKey) as Boolean

Registry hive, for example HKLM. For all accepted values, see Registry Functions.

Subkey to delete

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

Scripting Guidelines

Registry Functions Constants Package Property Variables