remove

Usage

remove expression

Aliases

rm, prune, delete, del

Description

Unlink all nodes in a given node-list from their respective documents. Nodes, which are neither attached to a document or stored in a variable are automatically garbage-collected.

Returns a number of nodes removed.

Example 43. Get rid of all evil creatures.

xsh> del //creature[@manner='evil']