Imports SystemImports System.ReflectionImports System.XmlModule Module1 Sub Main() Dim xml As XElement = XElement.Load("People.xml") xml.Element("role").Remove() Console.WriteLine(xml) End SubEnd Module