#Manual Cleanup of Registry

1 messages · Page 1 of 1 (latest)

civic ginkgo
#

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?

gilded holly
civic ginkgo
#

Thanks, I'll give Spook a try. I do see some "Issues" reported for Spook about failing to delete if there are more than some not too large number of orphaned entities.

#

I'd hoped there might be a shell script that given a platform name would clean up the registry files.