Skip to content

Remove

Removes the current node and returns it in an array.

1
myXml.Remove():Array<Xml>

Removes all nodes at the specified XPath and returns the removed nodes in an array.

1
myXml.Remove(xpath: string):Array<Xml>

Parameters

string xpath
    The XPath of the nodes to remove. If not specified, the current node is used.

Remarks

Remove all customer nodes

1
var deletedCustomers = $Xml.Remove('//Customer');

See Also