public void detachAllChildren() {
        // Note: this could be a bit more efficient if it delegated
        // to a private method that avoided setBoundRefresh(), etc.
        // for every child and instead did one in here at the end.
        for (int i = children.size() - 1; i >= 0; i--) {
            detachChildAt(i);
        }
        logger.log(Level.FINE, "{0}: All children removed.", this);
    }
<code>detachAllChildren</code> removes all children attached to this
node.
jme3-core/src/main/java/com/jme3/scene/Node.java