UngroupLayer([group$,] layer1[, layer2, ...])
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.