removeNodeData method
When you want to remove a node or group from the diagram, call this method with an existing data object. This will remove that data from the #nodeDataArray and notify all listeners that a node data object has been removed from the collection.
If you do not have a reference to the particular data object that is in the #nodeDataArray, you may need to search for it by iterating through that Array, or by finding the desired Node or simple Part in a Diagram and getting that node's Panel#data, or most likely by calling #findNodeDataForKey.
Removing a node data from a model does not automatically remove any connected link data from the model. Removing a node data that represents a group does not automatically remove any member node data or link data from the model.
To add a node to the diagram, you can add its data object by calling #addNodeData.
To add or remove an object or value from an item array, call #insertArrayItem or #removeArrayItem. @param {Object} nodedata a JavaScript object represented by a node, group, or non-link.
Implementation
void removeNodeData(_i2.Object nodedata) {
_i4.callMethod(
this,
'removeNodeData',
[nodedata],
);
}