The DeleteRegKey function removes the specified key from the registry.
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.
ret = DeleteRegKey(<registry_key>)
<registry_key>. string, registry key (folder) to delete.
ret, optional numeric return value. If the function has successfully deleted the key, the return value is 0. If the function fails, the return value is a nonzero value (see System Functions Error Codes).
ret=DeleteRegKey("HKEY_CURRENT_USER\Software\WinTask\WinTask 1.0\TASKEDIT\Recent File List")