Overview
Removes current node and returns 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');