delete_variables
Remove an inclusive range of variables by index or name from a STATISTICA .sta/.stw file, optionally saving the edited result to a new .sta file.
Instructions
Delete an inclusive range of variables by index or name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"from": "<from>",
"to": "<to>"
},
"name": "delete_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Last variable to delete. | |
| from | Yes | First variable to delete. | |
| path | Yes | Absolute path to the source file. | |
| save | No | Optional destination path to persist the result as .sta. | |
| sheet | No | ||
| attach | No | Attach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed). |