alert.removeTriggers( uri as String ) as null
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
alert.configDelete
, for example), you should
do so in another transaction.
Parameters | |
---|---|
uri | The URI
specified to
alert.makeConfig .
|
const alert = require("/MarkLogic/alert.xqy"); declareUpdate(); alert.removeTriggers("http://acme.com/alert/message-board")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.