
dls:retention-rule-remove( $names as xs:string* ) as empty-sequence()
This function removes the specified retention rules from the database.
| Parameters | |
|---|---|
| names | The names of the retention rules to be removed. |
dls-admin role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-admin
xquery version "1.0-ml";
import module namespace dls = "http://marklogic.com/xdmp/dls"
at "/MarkLogic/dls.xqy";
dls:retention-rule-remove(("Rule1", "Rule2"))
(: Removes the retention rules, 'Rule1' and 'Rule2'. :)
xquery version "1.0-ml";
import module namespace dls = "http://marklogic.com/xdmp/dls"
at "/MarkLogic/dls.xqy";
dls:retention-rule-remove(fn:data(dls:retention-rules("*")//dls:name))
(: Removes all of the retention rules. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.