Loading TOC...

alert.removeTriggers

alert.removeTriggers(
   $uri as String
) as null

Summary

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.

Example

  var alert = require("/MarkLogic/alert.xqy");

  declareUpdate();
  alert.removeTriggers("http://acme.com/alert/message-board")
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments