alert:remove-triggers( $uri as xs:string ) as empty-sequence()
Remove triggers whose IDs are listed in the config.
The caller must have the alert-admin privilege. This function
writes the updated configuration to the database, so if you
need to delete the configuration as well (using
admin:delete-config
, for example), you should
do so in another transaction.
Parameters | |
---|---|
uri | The URI
specified to alert:make-config
.
|
xquery version "1.0-ml"; import module namespace alert = "http://marklogic.com/xdmp/alert" at "/MarkLogic/alert.xqy"; alert:remove-triggers("http://acme.com/alert/message-board")