The DeleteRegValue function removes the specified value 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 = DeleteRegValue(<registry_value>)
<registry_value>. string, registry value to delete. It must include the full path.
ret, optional numeric return value. If the function has successfully deleted the value, the return value is 0. If the function fails, the return value is a nonzero value (see System Functions Error Codes).
ret=DeleteRegValue("HKEY_CURRENT_USER\Software\WinTask\WinTask 1.0\TaskEdit\Recent File list\File1")