RemoveLayer(id)
id. This is basically
the same as the Undo() command with the exception that this function
accepts layer ids directly. With Undo() you would have to specify
a type, an id and maybe also an undo-level, now you can just specify the layer id
which should be much more convenient.
You need to enable layers before you can use this function. See Layers introduction for details.