A current(selected) layer is removed from document when press button on the layer window.
Removing layer can always any time even if a current layer has no-edit(no-editable) attribute.
Note that when the number of layer is 1, removing layer can not do it.