How to remove old entry from HA, and from itergation?

How to remove old entry from HA, and from itergation?

I assume that you actually mean an entity.
Go to your configuration menu, select Entity Registry, select the old Entity, and there is an option to delete it.