Hi Michael ,
If your intention is to remove all the nodes from the layer then you can use Model.RemoveChild() method. Please refer to the following code snippet.
[C#]
foreach (INode node in this.layer1.Nodes)
{
Node objnode = node as Node;
this.diagram1.Model.RemoveChild(objnode);
this.diagram1.Update();
}
Please refer the below sample to remove all the node from the diagram.
http://websamples.syncfusion.com/samples/Diagram.Windows/F70863/main.htmIn this sample you can remove the nodes in the layer by clicking on File-> RemoveNodes menuitem.
Please let me know if you have any questions.
Regards,
Srirajan