Language Reference Guide : System Classes : Tree Class : DeleteNode Method
 
Share this page          
DeleteNode Method
The DeleteNode method deletes a node from the tree, freeing the node.
This method has the following syntax:
Tree.DeleteNode(node = TreeNode, | keylabel = varchar(256), |
          name = nvarchar(256) [, allnodes = integer])
This method has the following parameters:
Note:  Only one of the first three parameters must be supplied.
node
Specifies the TreeNode to be deleted
keylabel
Specifies the label of the node to be deleted
name
Specifies the name of the node to be deleted
allnodes
Specifies whether all of the node's descendants are deleted. Valid values include:
TRUE
Specifies that the node's descendants are deleted
FALSE
Specifies that the node's descendants are not deleted
Default: FALSE