Repository navigation
dos_regdelkey
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Removes an existing subkey from a key in the Windows Registry. This function will also remove any subkeys.
WARNING: Using registry functions incorrectly can cause serious problems that may require you to reinstall your operating system. Use the registry functions carefully.
(dos_regaddkey hive key subkey)
hive
The registry hive. Valid values include:
| Hive |
|---|
| HKEY_CURRENT_USER |
| HKEY_LOCAL_MACHINE |
| HKEY_USERS |
| HKEY_CURRENT_CONFIG |
| HKEY_CLASSES_ROOT |
| HKEY_PERFORMANCE_DATA |
| HKEY_DYN_DATA |
key
The registry key.
subkey
The subkey to remove.
T if successful.
nil on error.
Command: (dos_regdelkey "HKEY_CURRENT_USER" "Software\\MyCompany" "MyProduct")
T