delete method

void delete()
override

Delete this node

Implementation

void delete() {
  if (isRoot) throw ActionNotAllowedException.deleteRoot(this);
  (parent as Node).remove(this);
}