deleteNode(node) {

    if (!node) {
      return;
    }

    const id = (typeof node === 'object' ? node.id : node);
    const tRef = this.getTiddlerById(id);

    // delete tiddler and remove it from the river; this will
    // automatically remove the global node style and the outgoing edges

    if (tRef) {
      // checking for tRef is needed;
      // see: https://github.com/Jermolene/TiddlyWiki5/issues/1919
      utils.deleteTiddlers([ tRef ]);
    }

    // delete local node-data in views containing the node

    const viewRefs = utils.getMatches(env.selector.allViews);
    for (let i = viewRefs.length; i--;) {
      const view = new ViewAbstraction(viewRefs[i]);
      view.removeNode(id);
    }

    // remove obsolete connected edges

    const neighbours = this.getNeighbours([ tRef ]);
    this.deleteEdges(neighbours.edges);

    // -------------------------------------------
    // NEVER DELETE AN INDEX THAT ALREADY EXISTED!
    // -------------------------------------------
    // Some instances may have cached the index and get confused!
    // It does not do harm to leave indeces as is since we do not
    // iterate over them(!) and when a tiddler has the same title or
    // id as a deleted tiddler, which is highly unlikely, then it will
    // simply override the index, which is totally fine. The indeces
    // are refreshed on every boot anyway so it is not a big deal.
    //
    // THEREFORE:
    //
    // DO NOT DO delete this.tById[id];
    // DO NOT DO delete this.idByT[tRef];

  }
This function will remove all tiddlers from the wiki that correspond
to a node in the collection. Drafts are also removed. The default
storylist is updated eventually.
call deleteNode which does the following
1. get id using IdByT
2. remove id using adapter.deleteEdgesByTo(idByT[tRef])
3. remove from all indeces

@see: https://github.com/Jermolene/TiddlyWiki5/issues/1550

@param {Node|string} node.