MarkLogic 10 Product Documentation
trgr.removeTrigger

trgr.removeTrigger(
   trigger-name as String
) as null

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

declareUpdate();
const trgr = require('/MarkLogic/triggers');

trgr.removeTrigger("myTrigger");

// Empty sequence. Removes the specified trigger from the database.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy