
dls:break-checkout( $uri as xs:string, $deep as xs:boolean ) as empty-sequence()
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.
|
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:break-checkout("/foo/bar/baz.xml", fn:true())
(: This breaks the checkout of the 'baz.xml' document. :)