MarkLogic 9 Product Documentation
alert:config-delete

alert:config-delete(
   $uri as xs:string
) as empty-sequence()

Summary

Remove an alerting configuration identified by the specified URI. If the config does not exist, an exception will be thrown. Any triggers associated with the alerting configuration will be automatically removed. Any actions and/or rules associated by the config will also be removed as well as the protected collection. The caller must have the alert-admin privilege to call this function.

Parameters
uri The URI of the alerting configuration.

Example

  xquery version "1.0-ml";
  import module namespace alert = "http://marklogic.com/xdmp/alert" 
		  at "/MarkLogic/alert.xqy";

  alert:config-delete("http://acme.com/alert/message-board")
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy