remove()
Description
Deletes the specified item from the diagram
note
If the diagram is initialized in the org (type: "org") or mindmap (type: "mindmap") mode, deleting a shape will remove the link to this shape and all child shapes as well
Usage
remove(id: string | number | array): void;
Parameters
id
- (required) the id(s) of the items that should be deleted
Example
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
diagram.data.parse(data);
diagram.data.remove("2");
Related articles: Deleting items
Related sample: Diagram. Data. Add/delete item