Power down the hub and remove power for 30 seconds again. When it boots back up do not click any of the refresh or remove buttons on the z-wave details. Are the remaining connected devices working? If devices do not work after reboot, you may have removed critical repeaters from the mesh, crippling it, the only solution would be to add repeaters back in.
If they do work (even if only for a short time) you have a couple of options to clean things up.
- Ignore the ghost nodes for now, in a few days check back and see if the neighbor count has dropped to 1, if it does then you should be able to refresh and remove.
- Try a full z-wave repair, this may help speed up the process of dropping the dead nodes to 1 neighbor.
- Use the Z-wave mesh tool [BETA] A Z-Wave Mesh Tool [C7 and 2.2.4+ Only] to look at what the neighbor nodes are that the ghost devices are hanging onto (use the > arrow in that app to see). Once you have that, if you remove the neighbor node properly by excluding then the ghost node should also be removable.
- Total Z-wave radio reset and start from scratch, this is more involved than just reset and start over so not even going to explain it all here.