WTH, is there no automated way to clean up the registry files

Can we please add a Service call or something simular that would allow us delete enties that have been disabled or show as unavialble in the device and entity registries? There must be some reason why it was designed the way it was to mark entities as disabled rather than just remove them from the registry files. However, over time a lot of trash end up in our registry files. We need the ccleaner equivalent for hassos.

As an example, I recently removed a WLED integration and then needed to add it back. However, I could not add it back because it said the entity already existed. I had to go through each of the core.x files and manually remove them, hoping i didn’t accidently get a comma out of place. WLED is particulalry nice because it creates 25 entities in core.entity_registry for all the presets, all marked as “disabled_by”: “integration”. There really needs to remove these entities from HA.

recently removed a WLED ingration and instead of removing the entities from the core.config_entities file, it just marked them all as disabled by user. There needs to be a way to remove these types of entities as if it has been disabled, then it really serves no purpose.