Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sec:remove-path

sec:remove-path(
   $path as xs:string,
   $path-namespaces as element(sec:path-namespace)*
) as empty-sequence()

Summary

This function removes protection from the specified protected path and removes the path from the Security database.

Parameters
path The name of the path to remove.
path-namespaces The namespace(s) for the path to be removed.

Required Privileges

http://marklogic.com/xdmp/privileges/remove-path

Usage Notes

This function must be executed against the Security database.

Example


 (: execute this against the Security database :)
 
xquery version "1.0-ml"; 
import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";

sec:remove-path("/root/bar[@baz=1]", ()),
sec:remove-path("test", ()),
sec:remove-path("/root/reg[fn:matches(@expr, 'is')]", ())
    

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