The delete_layer function is failing to fully remove all child nodes associated with the parent layer, resulting in incomplete deletion of layer elements.
If you group multiple layers, then either ungroup or delete the group, all but one of the children will be left behind as orphans.
The
delete_layer
function is failing to fully remove all child nodes associated with the parent layer, resulting in incomplete deletion of layer elements.If you group multiple layers, then either ungroup or delete the group, all but one of the children will be left behind as orphans.