Can't delete RestAPI Sensor

I had a remote linux server and I wrote a little script that would update a sensor on my HA instance every 15 minutes so I knew it was alive.

I updated the sensor state via the RESTful API: http://IP_ADDRESS:8123/api/states

I no longer need this sensor, but can’t figure out how to delete it from HA. Since it was created/updated via the API, I can’t edit/delete it in HA as it doesn’t exist in the yaml files.

I haven’t updated the value in weeks, but it returns when I restart HA.

Any ideas?

image
image

Poasting here to learn the answer too.

1 Like

Do you have the fix for this issue ?