Click on a port to toggle its selection. The Delete command will only delete selected ports, if there are any; otherwise it will delete Nodes and Links as it normally would.
The model data, automatically updated after each change or undo or redo: