models-remove_definition
models-remove_definitionRemove a plan item definition from a draft model. Automatically bridge inbound sentries to outbound targets for tasks, or cascade deletions for non-task definitions.
Instructions
Removes a plan item definition from a draft model. For task definitions, automatically bridges the inbound sentries to the outbound targets so the workflow chain stays intact (the dropped-task case). For non-task definitions (sentries, milestones, stages, event_listeners), cascades to any dependent sentry. Also exposed as models-delete_definition (alias).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definition_id | Yes | Definition ID (@rid format) | |
| dry_run | No | Tasks only — when true, returns the planned audit (what would be removed and bridged) without applying any changes. Ignored for non-task definitions. | |
| model_id | Yes | Model ID (@rid format) | |
| repoint_inbound | No | Tasks only — when true (default), bridges across the deleted task: each (inbound_sentry → task → outbound_sentry) chain becomes a direct (inbound_source → outbound_guards) sentry. When false, all sentries referencing the task are deleted (cascade), leaving the upstream chain stub-ended. Ignored for non-task definitions. |