delete(xnodes?)
xnodes
Delete specified nodes (whatever their types) or attributes. Parameter xnodes defaults to the context node.
Examples:
delete(); delete(/html/head/comment()); delete(//span[@s:class = "dummy"]); delete(//@s:*);