Overview
Removes all nodes on specified xpath or current node and returns removed nodes in array.Array<Xml> myXml.Remove()
Array<Xml> myXml.Remove(xpath: string)
Arguments
string xpath
XPath of nodes to remove. If not specified current node is used.
Example
Remove all customer nodes
var deletedCustomers = $Xml.Remove('//Customer');