How to remove an orphaned offline linked device?

I have a device that I had shared from a C7 hub that was called C7 to a C4 hub called C41. I believe I stopped sharing it and then I renamed the C7 hub. Now I have the offline linked device, disabled, still in the list of devices on the C4 hub and (I find this odd) also listed in the Zigbee devices list. I don't believe it is causing any problems but it is annoying. If I try and delete it from the Device page I get a 500 error. I don't think I have seen anyone mention how to get rid of things like this.

Is there anything listed in the "In Use by" section at the bottom of the device page?

No, nothing listed there.