
alert:rule-remove( $config-uri as xs:string, $id as xs:unsignedLong ) as empty-sequence()
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. |
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)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.