[ST Edge] Delete a device from driver code

I am implementing a driver for a bridge and would like to remove the child devices if the bridge is removed. ST adds a dialog to the bridge by default warning that connected devices will be removed, but I see no way to actually trigger the removal. When the bridge is removed, my handler is called and I can lookup all the devices connected to it. Once I have those devices, how can I tell ST to remove them? I assumed I would find a call in the Driver api, but don’t see anything.

Currently, it will only work with LAN devices.

When creating a child device, add the attribute parent_device_id
This way, when you remove the main device, it will also remove child ones.

Even better. This will delete them all automatically! Thanks.