Delete GTM Variable
gtm_delete_variableDelete a variable from a Google Tag Manager workspace using its ID. Specify the account, container, workspace, and variable IDs to remove the variable.
Instructions
Delete a variable from a workspace.
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": {
"account_id": "<account_id>",
"container_id": "<container_id>",
"workspace_id": "<workspace_id>",
"variable_id": "<variable_id>"
},
"name": "gtm_delete_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | The GTM account ID | |
| variable_id | Yes | The GTM variable ID to delete | |
| container_id | Yes | The GTM container ID | |
| workspace_id | Yes | The GTM workspace ID |