RegDeleteValue

[DllImport("coredll.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern int RegDeleteValue(
   IntPtr hKey,
   string lpValueName
);

Microsoft documentation: Link

Last updated