How to delete devices

Hi

I have a couple of Shelly devices that do not exist anymore. I deleted all entities belonging to them. But I can’t delete the device itself:

So I have two questions:

  • How do I delete non-existing devices?
  • How do I show a list of this kind of orphaned devices?

Thx a lot!

Thorsten

1 Like

Apparently the answer is to ask the developer to implement deletion correctly.

4 Likes

Ok. I understand. Since I have a lot of orphaned devices I really would appreciate if the develops would implement deletion correctly for all integrations… :worried:

Is there a way to suggest such kind of generic features?

A nice and healthy weekend for all of you!

Thorsten

/config/.storage/core.device_registry
/config/.storage/core.entity_registry

4 Likes

Yes I know. But I don’t want to edit this files by hand. It should be possible to use the GUI for this IMHO.

It’s not a feature request it’s required functionality. So you should create a new issue here:

So it does not sound like a feature request I suggest you use this title: “Unable to delete Shelly devices”

4 Likes

Can someone please explain how to get to this file? I’m new at Home Assistant and haven’t been able to figure out how to edit this file yet. Do I do it though the UI? If so, how exactly? I have the file editor installed, but haven’t been able to figure out how to do it that way either because I don’t see a config folder. Thanks for any help.

1 Like

You can delete devices through the integrations view https://[your domain]:8123/config/integrations

This no good soultion as it delete complete integration.
In case that you want to delete just specific device there is no GUI option…

1 Like

Same issue here but for the Mobile App integration. Ceased mobile devices that I removed from the integration are still orphaning in the device list.

1 Like

I came across this thread while trying to figure out how to delete/remove my old cell phone throughout all of HA and the many various integrations it was implemented within just to find that this capability apparently does not exist. Is this accurate, is there no way to accomplish deletion/removal of a mobile cell phone throughout all of HA?

1 Like

@srosendahl @nightfever, you can delete the device from the Integrations tab next to devices. There should be an integration with “[Your Device Name] - Mobile App”. A bit confusing to search for it there, but deleting it removes the orphaned device and frees the name again.

I’ve already tried but still no options to delete the device.

That’s weird, so you don’t have the delete entry in this menu?Screenshot 2022-02-17 233526

On my Configurations → Devices & Services → Integrations page, I have several devices (iPhones and iPads) within the Mobile App integration, so it shows as this screen shot.

image

So then if I select one of those devices, say sriph13promax, and then click on the three dots to pull up the Menu, I then see the Delete option for that specific iPhone named “sriph13promax”.

However, the specific iPhone named “sriphxsmax” is an old iPhone that I no longer have and is the one that I’ve attempted to remove throughout HA.

I still see this device listed via Configurations → Devices & Services → Devices followed by a search for “sriphxsmax” as shown in this next screen shot.

Then when I click on this device named “sriphxsmax”, see the following screen shot.

Clicking on the pencil results in this:

It doesn’t seem to matter if I disable or enable the device, I’ve not been able to figure out how to actually remove this and other orphaned entries through HA.

Oh, so sou see the devices for all of your current Mobile App logins but not for the orphaned one?
Then something seems to have gone wrong, I was able to see an old phone I didn’t use for over two years there and was able to delete it.
This is the usual way, but if that’s not possible in your case I guess only editing the db manually remains. Afterwards, it should work that way, though!

This screen shot shows that this device is still coming from your Unify Network integration and not Mobile App.

Right, it indeed is not part of the Mobile App, but is part of the UniFi Network integration.

I cannot delete it from there either? I’ve disabled the device, but still no options to delete it. I’ve gone into my UniFi controller and searched for the device name, it’s no where to be found there.

Any other ideas?

I just couldn’t find a way to delete several outdated entities without manually editing the core config files in .storage, which is a royal pain. So… I wrote a python script to track down all the dependent devices, entities, and config entries and rewrite the core.* files for me. I cannot guarantee that it is correct, but it worked well for me and I’m willing to share it with anybody who asks (DM, please).

Can you DM me that script ?