clear(container)

Removes all page items (including locked ones) in the given Document, Page, Layer or Group. If the selected container is a group, the group itself will be removed as well.

Type: function

Parameter(s):

  • container {Document | Page | Layer | Group}:

    The container where the PageItems sit in.