Loading TOC...

trgr:remove-trigger

trgr:remove-trigger(
   $trigger-name as xs:string
) as empty-sequence()

Summary

Removes the named trigger.

Parameters
trigger-name The trigger name.

Usage Notes

This function deletes the specified trigger. You must run this function to remove a trigger before recreating it. If the named trigger does not exist, the exception TRGR-TRIGGERDNE is raised.

Example

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

trgr:remove-trigger("myTrigger")

  => Empty sequence. Removes the specified trigger from the database.
  

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