Pascal Scripting: RegDeleteKeyIfEmpty

Prototype

function RegDeleteKeyIfEmpty(const RootKey: HKEY; const SubkeyName: String): Boolean;

Description

Deletes the specified subkey if it has no subkeys or values. Returns True if successful, False otherwise.