Loading TOC...

dls:break-checkout

dls:break-checkout(
   $uri as xs:string,
   $deep as xs:boolean
) as empty-sequence()

Summary

This function breaks (unlocks) a checked-out document

Parameters
$uri The URI of the checked out document.
$deep If set to true, then the checkout is broken for any checked-out documents that are directly or indirectly included by the specified document.

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:break-checkout("/foo/bar/baz.xml", fn:true())

  (: This breaks the checkout of the 'baz.xml' document. :)
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.