page/client/page/pageServices.js
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 ];
            }
        }
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 ];
            }
        }
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 ] ; } }
Deleting a page from tree by passing path and id *
Deleting a page from tree by passing path and id *