Cannot remove old generic thermostat

I have a generic thermostat and renamed it, now there are two entities. As there are no unique IDs (configured manually via yaml) I cannot remove it from the GUI…there is no matching record in config.yaml so it must be loading the old entitiy id from the db…not sure what to do to get rid of one of them.