Bug? Removing a node does not remove some of its disabled entities

Anyone experience orphaned z-wave entities? I removed a z-wave node/device and then rebooted the host, now I have entities belonging to an unavailable device. The node disappeared from the z-wave integration’s node list. However, what remains are the entities I had disabled.

Is this a bug with HA not cleaning up properly?
Is there a way to manually clean this up now?

Note, this Aeotec Water Sensor creates 2 items on the Device list. Each “Device” represent 2 of the 4 contact pins on the physical device. Each Device has its own Alarm Type, Alarm Level, and SourceNodeID.

Here is the removed Water Sensor 4, with the remaining device and its entities:


Here is a properly working water sensor device:


Could the duplicate Device names be an issue?

Not sure what I did, perhaps a reboot, but the delete button became enabled and I deleted the 3 remaining entities. However, I am unable to delete the Water Sensor 4 device because it says Device Unavailable.

I’m having the same problem trying to delete a removed BeNext motion sensor. Node is gone, but devices remain. Entities don’t show up to delete.

\config.storage\core.device_registry had the ghost nodes. Removing them manually in a text editor did the trick.