delete_variable
Remove a stock, flow, or auxiliary variable from a Stella model. Optionally force deletion of stocks with connected flows, which detaches the flows.
Instructions
Delete a stock/flow/aux and clean connectors/module membership
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Variable name to delete | |
| force | No | Allow deleting stocks that still have connected flows (flows are detached) | |
| model_id | No | Session-scoped model ID. Optional; defaults to the current model for this session. |