MarkLogic 9 Product Documentation
alert:rule-remove

alert:rule-remove(
   $config-uri as xs:string,
   $id as xs:unsignedLong
) as empty-sequence()

Summary

This function removes the specified rule from the collection. A user must have the alert-user privilege to call this function. An exception is thrown if the rule does not exist. A user must have the alert-admin privilege to delete other users' rules.

Parameters
config-uri The URI passed to alert:make-config .
id The ID of the rule to be removed.

Example

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

  alert:rule-remove("http://acme.com/alert/message-board", 987654321)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy