While using Console to monitor my MacMini (Sonoma 14.7.6) I noticed many hundreds of these errors:
... cfprefsd Couldn't open parent path due to [2: No such file or directory]
Did some digging into the cfprefsd daemon. Rediscovered the defaults command line tool, but I do not see how to extract the info I need (the broken paths). I found you can dump all the preferences for a given domain to a plist. Thought then a solution would be to dump all the domains and run the output through a script to extract all the paths and check which no longer exist. Ran defaults domains to see what kind of a dump I would be dealing with. Discovered there are a thousand plus domains registered and it looks like 90% of them are obsolete. Feeling at this point the bad paths and the obsolete domains might be connected.
So is there a way to easily and effectively remove defaults domains for software no longer installed on my machine? Barring that how can I get more details from cfsprefs so I can find and fix the bad paths?