templates_delete
Deletes a Google Tag Manager template from a specified account, container, and workspace after explicit confirmation to prevent accidental removal.
Instructions
[DELETE] Delete a GTM template. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
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": {
"accountId": "<accountId>",
"containerId": "<containerId>",
"workspaceId": "<workspaceId>",
"templateId": "<templateId>",
"confirm": "<confirm>"
},
"name": "templates_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to confirm this delete operation. | |
| accountId | Yes | The GTM account ID. | |
| templateId | Yes | The templates ID to delete. | |
| containerId | Yes | The GTM container ID. | |
| workspaceId | Yes | The GTM workspace ID. |