WTH is so hard to clear out unused entities

Devices being renamed, devices created by integration which were removed since then - it all creates a lot of garbage entities which cannot be removed easily.

For example : lets say that i rename my AndroidTV box, HA creates a new entity with a new name, but the old one still stays there, cannot be deleted and even partially works.
Another example are MQTT and new OZW integration devices which dont get automatically removed if they disappear from the network.

Agreed. There should be better object management that at least finds these “orphaned” objects and tells the admin or ideally just cleans them up automatically. The flip side to this issue is what I posted here.

Those deleted or renamed entities can be referenced by automations, scripts, groups, etc. that are then broken / incorrect because of the change to the entity.