First you will need to get the selected node:
var selectedNode = "";
var selectedNodeIndex = "";
selectedNodeIndex = event.newTreeNodeIndex;
selectedNode = document.all["tvwLinks"].getTreeNode(selectedNodeIndex);
then remove then node:
selectedNode.remove();