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
$uriThe URI specified to alert.makeConfig.

Example

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

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

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy