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.
This no good soultion as it delete complete integration.
In case that you want to delete just specific device there is no GUI option…
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.
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?
@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?
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.
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 ?
I’d like to have is as well, please!
Spot on - exactly what was needed - thanks. Devolo integration had left a ghost device sitting around (probably as it got renamed and generally reconfigured a lot and left things in a confused state) - quick edit of core.device_registry to remove the offending device entry worked a treat.
Is your script to delete unused entities still working? (There has been several updates to core since you wrote it).
As far as I know it still works, I haven’t used it in a couple of months.
At least one person had sent me changes to make it a bit friendlier, but I haven’t put them in.
Hi @bretton.wade
I encountered a problem and asked for help here:
And I found your post here with the linked GitHub.
Unfortunately, I couldn’t find any information/explanations about your GitHub…
How does it work?
How do I use it?
Does it first check and list found obsolate devices, and can I choose devices I want to delete, or is it full automatic without control?
Can this solve my problem?
Many thanks
I’m sorry for the delay in responding… The script I shared might work for your use-case, but it is not user-friendly at all. It simply automated the steps of finding all the relevant configurations in the various configuration files (core.config_entries, core.entity_registry, and core.device_registry) when removing a stale entity.
If you are able to run a python script, you can try copying these configuration files to a separate directory and experiment with the script. If you are technical, I welcome a PR with updates.
If you don’t want to experiment with the script, the “Hidden by integration” problem can be solved with an editor by searching the core.entity_registry file for the tag, “hidden_by”: and setting that to “null”:
"entity_id": "binary_sensor.updater",
"hidden_by": null,
"icon": null,
After that, reboot HA, and then you might be able to delete the entity from within HA (no promises, though).