RegDeletePath(Path)
Deletes an entire path from the registry if the path is empty (does not contain any sub-values or sub-keys).
Parameters:
Path | The registry-path to be deleted |
Remarks:
If the path contains sub-values or sub-keys or path does not exist, an error occurs. See Registry functions for more information.
Example:
Call RegDeletePath("HKLM\Software\Microsoft\Internet Explorer")