GTM: Delete tag/trigger/variable
gtm_delete_entityDeletes a Google Tag Manager workspace entity: preview dependencies without changes, set confirm=true to remove it, then publish the version for live changes.
Instructions
Deletes an entity from the workspace (live only after version + publish). Two steps: without confirm only a preview (name, type and what still references it, e.g. tags on a trigger), with confirm=true it is deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | If omitted: preview only, changes nothing. Only run with true after review and approval. | |
| entityId | Yes | ||
| accountId | Yes | GTM accountId (from gtm_list_accounts) | |
| entityType | Yes | Entity type: tags, triggers, variables, folders, templates, clients, transformations, zones | |
| containerId | Yes | GTM containerId, numeric | |
| workspaceId | Yes | Workspace ID (from gtm_list_workspaces / gtm_create_workspace) |