remove

deletes the specified shape from the diagram

void remove(string|number id);

Parameters

idstring|numberthe id of the shape that should be deleted

Example

diagram.data.remove("2");

Related samples

Details

In case of organogram, deleting a shape will remove the link to this shape and all child shapes as well.

See also
Back to top