Deleting a page from tree by passing path and id *
function (path, id) {
            var hierachy = scope.tree.pathToPageArray(path);
            // get parent (last element in hierachy)
            var parent = hierachy[ hierachy.length - 1 ];
            if (parent.children && parent.children[ id ]) {
                delete parent.children[ id ];
            }
        }