I have tried any ideas I could find as to how to remove an entity that isn’t supported by a definition in the configuration.yaml. i had created one with an incorrect name. It ended up making a _2 version of that unique id name. There is no sensor definition for that abc_2 entity but it won’t allow me to delete it. I tried making an entity with that unique name and then deleting the definition, restarted in between all steps. No change. I tried purge and no change.
What other ways are there to remove an entity that is no longer defined?
You need to make sure that you are trying to remove the correct one.
It can be that the original one was renamed to _2 and the new one is actually the one without _2
When I go to the entities list and display all the entities containing a partial name that would get all of the like named entities, I only get the one with the _2, no originally name entity less the _2. So it recognizes that entity with a unique id ending in _2 but the delete option is not available, The code to create the sensor entity is removed form the configuration yaml.
I tried the trick where you add the code into the configuration and then remove it but that didn’t work either,
I can understand how it could be created and then exist in HA but it would seem there would be a way to get rid of it somehow. Right now, there is no defining code for the entity and I would think that HA would flag that as an error but it doesn’t.