I have an integration I have removed that has left hundreds of entities and device entries in the core.device_registry, core.entity_registry, and core.restore_state files. I want to remove all references to that integration. I have run grep -v [platform name] against the files to strip out the records, but HA then thinks the cleaned files are corrupt. Maybe there are foreign-keyed records that don't have the platform name? Help appreciated. Is there a guide to how the registry is constructed or a cleanup script I can run?
#Manual Cleanup of Registry
1 messages · Page 1 of 1 (latest)
Try installing Spook from HACS. Amongst the various things it adds. There are are actions to list and delete orphaned entities. Details in its Documentation.