alert.actionRemove( config-uri as String, name as String ) as null
This function removes the named action from the
database or throws an exception if the action does
not exist. The caller must have the alert-admin
privilege to call this function.
Parameters | |
---|---|
config-uri | The URI passed
to
alert.makeConfig .
|
name | The name of the action to be removed. |
const alert = require("/MarkLogic/alert.xqy"); declareUpdate(); alert.actionRemove("http://acme.com/alert/message-board", "sms") => Removes the action with name "sms" from the collection "http://acme.com/alert/message-board"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.