RegDeleteKeyW
RegDeleteTreeW
This is because the keys should be deleted regardless of whether they contain subkeys or not.