Delete a config entry (integration)
ha_delete_config_entryPermanently delete a Home Assistant config entry by ID to remove orphaned or duplicate integration instances that cause entity IDs to gain '_2' suffixes. Get the ID from ha_list_config_entries.
Instructions
Permanently delete one config entry (integration instance) by id. This is the fix for orphaned or duplicate entries — the kind left behind when a device's original config entry never got cleaned up, so a re-added device's entities pick up a '_2' (or higher) suffix because the old entry is still holding the original entity_id. Get entry_id from ha_list_config_entries; match on name/domain/state to find the stale one before deleting.
There was previously no way to do this outside the Settings → Devices & services UI. Requires ha:config. The response's require_restart says whether Home Assistant needs a restart to fully drop the entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry_id | Yes | Config entry id, from ha_list_config_entries. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. |