Delete a trigger
delete_triggerDelete a trigger file from a scene's triggers directory, removing its onEnter and onLeave scripts. A cross-reference check runs for safety; use force to override.
Instructions
Delete one trigger file from a scene's triggers/ directory. Triggers are rarely referenced by other scripts (they only run on enter/leave), but the cross-reference check still runs for safety. Pass force: true to override. The trigger's own onEnter / onLeave scripts go away with the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Skip the cross-reference check. | |
| sceneId | Yes | Scene id (UUID) the trigger lives in. | |
| triggerId | Yes | Trigger id (UUID) to delete. |