What I’ve done to remove ghost devices is:
- Using the IDE, create a new device with a name you can easily identify. I usually create a virtual switch. Assign it to the appropriate Location and Hub.
- Give things a few minutes to propagate
- Using your app, delete the device. You’ll probably have to force delete.
I did this a few days ago and happened to have the hub events log open in a window. I saw some Z-wave deletion messages.