Loading TOC...

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

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