MarkLogic Server 11.0 Product Documentation
info:policy-delete

info:policy-delete(
   $policy-name as xs:string
) as empty-sequence()

Summary

[DEPRECATED] This function deletes a named policy. If the policy is successfully deleted or does not exist, this function returns an empty sequence.

Parameters
policy-name The name of a stored ingestion policy.

Example

  xquery version "1.0-ml"; 

  import module namespace info = "http://marklogic.com/appservices/infostudio"  
      at "/MarkLogic/appservices/infostudio/info.xqy";

  info:policy-delete("default") 

  (: Deletes the default policy. :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy