Loading TOC...

DLS-NOSUCHRULE

Message Text

retention rule variable1 does not exist

Cause

Attempt was made to remove a non-existent rule.

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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.