I played with a Scrape integration a bit, added/deleted entities via UI.
Now I see that old entities (which were deleted) are still in core.entity_registry.
(surely these entities are not displayed in Settings → Entities)
Rebooted HA several times (due to other reasons) since a deletion of the last scrape sensor.
I wonder why old entities are still stored?
Consider this as a bug.
Registered an issue:
Update:
Have not found any docs regarding a structure of the core.entity_registry file & got a little of feedback in Community, so had to guess by myself.
Probably these “orphaned entities” present in the file for the case “entities a restored/recreated by a user”, but this is just a guess; also, have no idea what the purpose to keep these deleted entities.