Removes the child nodes from this document or element.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
If you call this method on an element that contains attributes, this method will not remove the attributes. To remove the attributes of an element, use RemoveAttributes.
The Remove method has related functionality. It removes the child nodes of every node in a collection.
.NET FrameworkSupported in: 4.6, 4.5, 4, 3.5
.NET Framework Client ProfileSupported in: 4, 3.5 SP1
XNA FrameworkSupported in: 3.0
Portable Class LibrarySupported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8