Delete an XML node using the node name
How to delete an XML node using its name.
Using xml.linq
we can delete a node from XML in C#.
XDocument XMLDoc = XDocument.Load(path);
XElement elment = (from xml1 in XMLDoc.Descendants("Node")
select xml1).FirstOrDefault();
elment.Remove();
XMLDoc.Save(path);