RegistryEntryDelete deletes a name entry from the Name Registry.
OSStatus RegistryEntryDelete (const RegEntryID id);
Given the RegEntryID value of a name entry in the Name Registry, RegistryEntryDelete deletes it. If the name entry node is deleted, the iterator and RegEntryID are no longer valid and cannot be used for subsequent iterations.
noErr
|
0 | No error |
paramErr
|
-50 | Bad parameter |
nrLockedErr
|
-2536 | Entry or property is locked |
nrInvalidNodeErr
|
-2538 | RegEntryID value not valid |
In the current Mac OS, all children of a parent entry are removed when the parent is removed. Removing a parent entry, thereby creating orphan entries, may not be supported in future releases.