gtm_tags_delete: Delete a tag

View source: R/tags.R

gtm_tags_deleteR Documentation

Delete a tag

Description

This deletes a tag in a GTM workspace

Usage

gtm_tags_delete(
  account_id,
  container_id,
  workspace_id,
  tag_id,
  force = c("TRUE", "FALSE")
)

Arguments

account_id

Account Id

container_id

Container Id

workspace_id

Workspace Id

tag_id

Tag Id

force

Force deletion without user input

See Also

https://developers.google.com/tag-platform/tag-manager/api/v2/reference/accounts/containers/workspaces/tags/delete

Other tag functions: gtm_tags_create(), gtm_tags_get(), gtm_tags_list(), gtm_tags_revert(), gtm_tags_update()

Examples


## Not run: 
accountId <- 1234567
containerId <- 7654321
workspaceId <- 10
tagId <- 100

gtm_tags_delete(accountId, containerId, workspaceId, tagId)

# This will delete tag %s. Are you sure you want to continue?

#  1: Yes
#  2: No

# Selection: 1

# Tag 100 has been deleted.

tagId = 101

gtm_tags_delete(accountId, containerId, workspaceId, tagId, "TRUE")

# Tag 101 has been deleted.


## End(Not run)


googleTagManageR documentation built on April 17, 2022, 1:05 a.m.