whole_func_string: 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 ];
              }
          }
func_code_string: 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 ];
              }
          }
func_documentation_string: Deleting a page from tree by passing path and id *