Loading TOC...

alert:remove-triggers

alert:remove-triggers(
   $uri as xs:string
) as empty-sequence()

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 admin:delete-config , for example), you should do so in another transaction.

Parameters
$uri The URI specified to alert:make-config .

Example

  xquery version "1.0-ml";
  import module namespace alert = "http://marklogic.com/xdmp/alert" 
		  at "/MarkLogic/alert.xqy";

  alert:remove-triggers("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.