Name
UngroupLayer -- remove layer(s) from group (V10.0)
Synopsis
UngroupLayer([group$,] layer1[, layer2, ...])
Library
layers

Function
This function removes the specified layer(s) from the group(s) they are attached to. If the first argument specifies the name of a layer group, the specified layers will only be removed from this group. If the group$ argument is omitted, the specified layers will be removed from all groups they are attached to.

Also, if you omit the group$ parameter, the layers you pass to this function don't have to be part of the same group. They are ungrouped from whatever group(s) they have been attached to. You can pass as many layers as you want to this function. Note that as soon as a group doesn't have any more layers attached, it will be automatically deleted.

To add layers to a group, use the GroupLayer() function. See GroupLayer for details.

You need to enable layers before you can use this function. See Layers introduction for details.

Inputs
group$
optional: name of the group to remove layers from; if this is omitted, the specified layers will be ungrouped from all groups they are attached to (V11.0)
layer1
first layer to ungroup
...
further layers to ungroup

Show TOC