Loading TOC...

MarkLogic 9 Product Documentation
alert:action-remove

alert:action-remove(
   $config-uri as xs:string,
   $name as xs:string
) as empty-sequence()

Summary

This function removes the named action from the database or throws an exception if the action does not exist. The caller must have the alert-admin privilege to call this function.

Parameters
config-uri The URI passed to alert:make-config .
name The name of the action to be removed.

Example

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

  alert:action-remove("http://acme.com/action/message-board", "sms")
  => Removes the action with name "sms" from the 
     collection "http://acme.com/message-board"
  

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