RegDeleteTree function advapi32
Deletes the subkeys and values of the specified key recursively.
To learn more, see learn.microsoft.com/windows/win32/api/winreg/nf-winreg-regdeletetreew.
Implementation
@pragma('vm:prefer-inline')
WIN32_ERROR RegDeleteTree(HKEY hKey, PCWSTR? lpSubKey) =>
WIN32_ERROR(_RegDeleteTree(hKey, lpSubKey ?? nullptr));