gtm_delete_entity
Delete a tag, trigger, or variable from a Google Tag Manager workspace. Check references first to avoid breaking tags that depend on the entity.
Instructions
Delete an entity from a workspace.
Deleting a trigger or variable that a tag still references leaves that tag broken, and the API will not warn you. Run find_references first.
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": {
"entity_type": "<entity_type>",
"entity_id": "<entity_id>"
},
"name": "gtm_delete_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| entity_id | Yes | ||
| account_id | No | ||
| entity_type | Yes | ||
| container_id | No | ||
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |