Description
The DeleteRegKey
function deletes the specified key in the Registry. Not available in WinTask Lite. Use all registry functions with caution. If you are unfamiliar with the Windows Registry we recommend that you do not use these functions. Removing or modifying a registry entry can cause your system to become unstable.
Syntax
DeleteRegKey(<path>)
or
ret = DeleteRegKey(<path>)
Parameter
<path>
, string, path for the key to delete in the Registry (it’s the path for the key to be deleted, not the key itself).
Return Value
ret
, numeric return code. If deletion is successful, the function returns 0, otherwise use this return code for error management.
Example
res = DeleteRegKey("HKEY_CURRENT_USER\\Software\\Taskware\\WinTask 1.0\\TASKEDIT\\Recent File List")