All but the 'model' and the 'root' layer can be
dynamically deleted. If a group layer gets deleted with
l_layer_delete then all its children layers get moved into their
grandparent group layer.
Usage
l_layer_delete(widget, layer)
Value
0 if success otherwise the function throws an error
Arguments
widget
widget path or layer object of class 'l_layer'
layer
layer id. If the widget argument is of class 'l_layer'
then the layer argument is not used