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.
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 |