Loading TOC...

alert.actionRemove

alert.actionRemove(
   $config-uri as String,
   $name as String
) as null

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-uriThe URI passed to alert.makeConfig.
$nameThe name of the action to be removed.

Example

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

  declareUpdate(); 
  alert.actionRemove("http://acme.com/alert/message-board", "sms")

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

Comments

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