Delete a global variable
delete_variableDelete a variable from the project. Blocks deletion if the variable is referenced in scripts; use force to override, which may cause compile errors.
Instructions
Remove a Variable entry from project/variables.gbsres. Refuses if any script references the variable (e.g. VARIABLE_SET_TO_VALUE / IF_VARIABLE_VALUE; ScriptValue {type:"variable", value:<id>}). Pass force: true to override — but expect compile errors on the next build_rom unless every reference is repaired.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Skip the cross-reference check. | |
| variableId | Yes | Variable id (string) to delete. |