Skip to main content

Home > @jsplumbtoolkit/core > Path > deleteVertices

Path.deleteVertices() method

Deletes all the nodes/groups in the path. As with the contains method, there is a special consideration here: if a path passes through ports on a node/group, then that node/group will be, for the purposes of this method, considered to be part of the path and it will be deleted. If you instead wish to delete only the ports in a path, use deletePorts. Note that this method will, of course, have the effect of also deleting all the edges, since the nodes/groups for those edges will no longer exist.

Signature:

deleteVertices(): this;

Returns:

this