$removeBranch

Removes the current branch including all of its children via executing the onRemoved template.
Syntax
    $removeBranch{}
DocumentationRemoves the current branch including all of its children via executing the onRemoved template:

    Returns:
      the number of the total branches removed.
    Note:
      to execute $removeBranch the template named 'onRemoved' must exist in the current catalog.
      the root branch can not be removed.
Examples
GroupBranch
Minimum required transaction-mode:UPDATE=TREE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters0
Maximum parameters 0