Delete stale devices

I created a device in deconz and its not working so I had to return it. Now it’s stuck as a device and several entities in home assistant. How do I remove it? I am using the latest version of hassio on rasp pi 4.

You can call the service deconz.remove_orphaned_entries

1 Like

Thanks for your response. This solution is not working. Is there a file somewhere on the deconz container that I can edit to remove these orphans?

You can try to remove them from storage,but is not a recommended method

Do you know how what file I would access on storage? Or do you know how I resolve the issue with calling the service not working? I am calling it with no attributes as the only one available is optional.

You saved my day!
Thx!