Loading TOC...

alert.configDelete

alert.configDelete(
   uri as String
) as null

Summary

Remove an alerting configuration identified by the specified URI. If the config does not exist, an exception will be thrown. Any triggers associated with the alerting configuration will be automatically removed. Any actions and/or rules associated by the config will also be removed as well as the protected collection. The caller must have the alert-admin privilege to call this function.

Parameters
uri The URI of the alerting configuration.

Example

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

  declareUpdate();
  alert.configDelete("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.