Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > removePort

JsPlumbToolkit.removePort() method#

Removes a Port from the dataset.


removePort(vertexOrId: string | Node | Group | Port, portId?: string): boolean;


vertexOrIdstring | Node | Group | PortIf a string is passed in here, it may represent the full ID of some port, ie in "vertex.port" notation, or it may be the ID of the vertex on which the port to be removed resides. If you do not pass a string to this argument you can pass a Port instead, or you can pass the Node/Group on which the port resides (in which case you'll also need to provide a value for portId)
portIdstringId of the port to remove from the given node. Only required if you did not provide a full port ID, or the Port itself, to vertexOrId.



True if the port existed and was removed, false otherwise.