MarkLogic Server 11.0 Product Documentation
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

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

  declareUpdate();
  alert.removeTriggers("http://acme.com/alert/message-board")
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy