Remove template sensor entity

I’ve removed a template sensor from my template.yaml file, but the entity is still in Home Assistant and showing data like it was never removed. I did restart Home Assistant twice after editing the YAML file.

How do I remove this entity?

Nevermind. They disappeared on their own after several minutes.