All children the node has of the specified type are deleted from the tree, and their memory is returned to the free store. The parent still exists on the tree.
The following code deletes all erp children of the eventNode.
eventNode *ev; ... if (no_erp_processing_wanted) ev->deleteChildrenOfType(erpType);