Remove child devices in custom device type handler DTH?

After some more digging, it appears there is an undocumented way to remove child devices from inside a DTH. the below is wrapped in a function that is the ‘action’ i call from a tile ‘button’:

	childDevices.each {
		try{
			deleteChildDevice(it.deviceNetworkId)
		}
		catch (e) {
			log.debug "Error deleting ${it.deviceNetworkId}: ${e}"
		}
	}

I have created a new thread for the released DTH and webCoRE pistons:

2 Likes