MarkLogic 9 Product Documentation
dls:retention-rule-remove

dls:retention-rule-remove(
   $names as xs:string*
) as empty-sequence()

Summary

This function removes the specified retention rules from the database.

Parameters
names The names of the retention rules to be removed.

Required Privileges

The dls-admin role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-admin

Example

  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'. :)
    

Example

  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. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy