Response
Specify the name of an existing retention rule.
You can use the following query to return the names of all of the retention rules:
xquery version "1.0-ml";
import module namespace dls = "http://marklogic.com/xdmp/dls"
at "/MarkLogic/dls.xqy";
fn:data(dls:retention-rules("*")/dls:name)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.