Skip to content

Deleting disabled Thing gets stuck #5495

@rkoshak

Description

@rkoshak

Expected Behavior

If a Thing is deleted, it actually gets removed.

Current Behavior

If the Thing is disabled and then one tries to delete it. The Thing transitions to the "marked for deletion" state both in the UI and in events.log. But there it remains. When restarting OH, the Thing comes back in a disabled state.

However, if one first enables the Thing and then deletes it, the Thing is removed as expected.

Steps to Reproduce (for Bugs)

  1. Disable a Thing
  2. Attempt to delete it
  3. Reboot OH and see that the Thing comes back as disabled
  4. Enable the Thing
  5. Successfully delete it

Context

It's not a big deal and there is a work around. But it is annoying and should be fixed.

Your Environment

runtimeInfo:
  version: 5.1.4
  buildString: Release Build
locale: en-US
systemInfo:
  configFolder: /openhab/conf
  userdataFolder: /openhab/userdata
  logFolder: /openhab/userdata/logs
  javaVersion: 21.0.10
  javaVendor: Debian
  osName: Linux
  osVersion: 6.8.0-110-generic
  osArchitecture: amd64
  availableProcessors: 4
  freeMemory: 350277328
  totalMemory: 1181745152
  uptime: 3517
  startLevel: 100
addons:
  - automation-jsscripting
  - binding-amazonechocontrol
  - binding-astro
  - binding-chatgpt
  - binding-chromecast
  - binding-homeassistant
  - binding-http
  - binding-ipcamera
  - binding-matter
  - binding-mqtt
  - binding-network
  - binding-networkupstools
  - binding-openweathermap
  - binding-shelly
  - binding-vesync
  - binding-zwave
  - misc-openhabcloud
  - persistence-inmemory
  - persistence-mapdb
  - persistence-rrd4j
  - transformation-basicprofiles
  - transformation-jinja
  - transformation-jsonpath
  - transformation-map
  - transformation-regex
  - ui-basic
  - ui-habot
  - voice-pipertts
clientInfo:
  device:
    ios: false
    android: false
    androidChrome: false
    desktop: true
    iphone: false
    ipod: false
    ipad: false
    edge: false
    ie: false
    firefox: false
    macos: false
    windows: false
    cordova: false
    electron: false
    capacitor: false
    nwjs: false
    webView: false
    webview: false
    standalone: false
    pixelRatio: 1
    prefersColorScheme: light
  isSecureContext: true
  locationbarVisible: true
  menubarVisible: true
  navigator:
    cookieEnabled: true
    deviceMemory: 32
    hardwareConcurrency: 11
    language: en-US
    languages:
      - en-US
    onLine: true
    platform: Linux x86_64
  screen:
    width: 2560
    height: 1440
    colorDepth: 24
  support:
    touch: false
    pointerEvents: true
    passiveListener: true
    intersectionObserver: true
  themeOptions:
    dark: light
    autoDarkMode: true
    bars: light
    homeNavBar: default
    homeBackground: default
    disableExpandableCardAnimation: false
    blocklyRenderer: null
    disablePageTransitionAnimation: false
    hideChatInput: false
    webAudio: false
    visibleBreakpointDisabled: false
  userAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
    Gecko) Chrome/147.0.0.0 Safari/537.36
timestamp: 2026-04-17T18:11:15.082Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions