Draft deleting a Tag Manager tag, trigger or variable
draft_delete_gtm_entityDraft deletion of a Google Tag Manager tag, trigger, or variable with a preview; referenced entities are refused and named.
Instructions
Draft deleting a Tag Manager tag, trigger or variable — returns a PREVIEW.
The entity is removed from a workspace and stays on the site until the workspace is published. A trigger that any tag still references, or a variable that a tag, trigger or other variable uses as {{name}}, is refused up front, with the references named. Refused unless gtm.write_enabled is set. Returns the entity that would be deleted, the resolved workspace and a plan_id.
Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | Numeric ID of the entity (see list_gtm_tags, list_gtm_triggers and list_gtm_variables). | |
| entity_type | Yes | "tag", "trigger" or "variable". | |
| workspace_id | No | Workspace to edit (see list_gtm_workspaces). Empty uses the Default Workspace, or the only workspace there is. | |
| gtm_account_id | No | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. | |
| gtm_container_id | No | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||