How to delete an entity that is neither in a config file, nor in an integration?

Good catch.

It was the reason why I originally asked if you recalled which integration you had used. If it was MQTT then I would have directed you to this post: