How can I delete devices I dont want in HA?

I’ve got a similar problem. Been playing around with ESPhome and using the same ESP do trial new setups. However because you can’t delete an old device, when you change it to a new one with different capabilities HA still see’s it as the old one. Even the name doesn’t change on the ESPhome integration.

Is there still no way to delete old/unused devices?

3 Likes

Same here… As i’m getting rid of devices connected via the Telldus integration, the ghosts of them are trapped in limbo in HA, unable to reach either heaven or hell.
Any way we can flag this as a bug or issue or something?

Btw, the Q/A you did was really funny :smiley:

Looks like the IKEA integration got updates as I no longer see old dead devices anymore! Woohoo!

2 Likes

Been migrating from Smartthings and have moved all ZigBee devices and several Z-Wave devices.
Thes enot long show in the Smartthings App or at https://graph.api.smartthings.com/device/list but even after “reloading” the Smartthings integration the device never go away from home assistant.

Any ideas?

2 Likes

I hate to say it , as a moderate newbie. the oily way I found to delete/get rid of failed Z-wave devices was delete the whole VM and the associated VDI and start anew

I met this issue too. I ended up with large number of ghost items that I cannot delete. All I can do is disable them.

This is a mess. Not it just clutters everything but names are used by disabled entities so I cannot use them for new devices.

Is this really so big issue to allow option to delete device from the system?

1 Like

Damned, same problem here:

I’ve 2 esphome devices: they come with the same name out-of-the-box. So I’ve had trouble devising which one is which and renaming 1 of them using esptool/esphome.

Eventually I came to a point where I had 3 esphome devices in HA: 1 with the original name and 2 with the modified name.

So, I decided to delete 1 of the device with the modified name, found out I couldn’t delete it, went for disabling it. Then, HA told me something like “do you want to disable its configuration instead?”, I clicked OK.

Don’t know what happened exactly, but now, my HA setup has 2 esphome devices: the one with the original name functioning perfectly, and the one with the modified name which is disabled and which I can’t enable again (probably because I should enable its configuration instead of the device, but I can’t figure out yet how to do that…).

I don’t want to delete the whole integration since the original unmodified device works perfectly and I don’t want to lose its historical data.

What should I do?!?

You can remove them by going into your add-ons =>Z-Wave JS UI or Z-Wave JS
open web ui, then select your product and from action you can choose to remove failed nodes

You can re & re the ESPHome add-on without disrupting the integration setup as its data is stored in HA /config/esphome and remains behind and will reconnect. I had to do this to get the newest version of the ESPHome add-on.

As for buggered/duplicate devices, I’ve removed both the old & new devices from ESPHome integration and then restarted HA to trigger ESPHome re-discovery. I’ve also renamed yaml files as I wanted to change from " _ _ " style names to " - - ". As for historical data, I suspect that if the new device entity matches the history entity it will be there. Not sure though…

You disabled the device here?
image

Are you not able to delete it from there now that it’s disabled?

Dunno if you guys noticed it yet, but it seems you can delete a device from an integration in HA (I just tested with HACS SONOFF) by clicking on the hamburger in Device Info.

The following solution worked for me:

To delete old devices with the deconz dongle, do the following:

  1. Delete the device from the deconz “Connected sensors”-page.
    e.g.
    hassio route:
    /core_deconz

  2. Go to the Developer Tools > Services page
    e.g.
    hassio route:
    /developer-tools/service

  3. Call the following service
    Enter in the field: deCONZ: Remove orphaned entries
    Click on the button: Call Service

  4. Review the deconz devices under Settings and select the “X devices” link under the deCONZ Integration

The old devices are no longer listed.

This removed all the redundant devices e.g. died Aqara Temperature, Humidty, Air Preasure sensors I had that were sensed with my deCONZ dongle.

More Infos here:
SERVICE DECONZ.REMOVE_ORPHANED_ENTRIES

Remove entries from entity and device registry which are no longer provided by deCONZ.

Service Calls

3 Likes

I know this thread is a bit dated but this is how I got rid of them:

So I just went to the api page https://graph.api.smartthings.com/device/list :slight_smile:

  • Navigated on the left to MySmarthings

  • This took me to the Smarthings home page that shows all my devices

  • I removed all of the devices that were no longer valid

Went back to home assistant and removed the Smartthings integration - re-added back in and all my orphaned devices/entities were gone.

Yes, that seems to work but is still a workaround.
There must be a better way.
There is an issue, but some say that just the way it is.

This is a “negative customer impact feature”.

Is there easy way to remove devices?
I have some orphaned Bluetooth devices which I want to delete

1 Like

WARNING: THIS IS LIKE BRAIN SURGERY - Screw things up, YMMW, kaboom, etc

had the same problem, no good answers to be found. RTL_433 project, combined with no filters, had 4700 entires in my devices file I didn’t want. Removed the integration, devices stayed.

Found the core.device_registry in .storage, realized it was in a format JQ should be able to handle, and puttered around till I found a solution that worked.

  • copy your file to a save spot to work on it, like /root then
  • jq '.data.devices |= del(.[] | select(.manufacturer == "rtl_433"))' core.device_registry > core.device_registry.NEW
  • compare the file, make sure the device blobs you want gone are gone.
  • stop HA
  • copy the new file over the top
  • (re)start HA
  • vanished like magic!

As usual, be careful, since you’re editing the DB directly, but this is what it took to clean up for me.

You, dear sir, are a gentleman and a scholar.

Been banging my head against the wall for hours on this, so THANK YOU for making this post! That’s exactly what I was after!

I too just figured this out. It was a lot simpler than I was making it and can be done within the UI.

I had a device from an integration I believed to be misconfigured and wanted to delete/re-add it to start fresh. Removing the integration was not an option for me and frankly, should never be an option given the amount of devices I have set up. I struggled to find the “Delete” button but it exists.

Here we go:

Settings > Devices and Services > Click the name of the integration providing your device > Click the hamburger menu (3 dots) to the right of device you want to delete > Press Delete > Confirm Delete

They really should add the button/ability to delete devices from more places in the UI where it would seem intuitive. Namely, the Devices list.

1 Like

Are you sure about that?
I just tried following those steps to do it with the DeConz integration, but they didn’t amount to anything as the option to delete a single item wasn’t there in the first place.

Would you mind getting some screenshots of what you’re doing as it might be on a “integration by integration” basis and might not work with all of them (Deconz included)?
Thanks.

1 Like

Following your steps, the Delete option is for the integration, with a dialog warning it will delete all the devices and entities.

It seems like the devices may only be deleted if the author of the integration has added the supported code/configuration.

1 Like