gtm_versions_delete: Delete a container version

View source: R/versions.R

gtm_versions_deleteR Documentation

Delete a container version

Description

Deletes a container version

Usage

gtm_versions_delete(
  account_id,
  container_id,
  version_id,
  force = c("TRUE", "FALSE")
)

Arguments

account_id

Account Id

container_id

Container Id

version_id

Version Id

force

Force deletion without user input

See Also

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

Other version functions: gtm_versions_get(), gtm_versions_update()

Examples


## Not run: 
accountId <- 1234567
containerId <- 7654321
versionId <- 6

gtm_versions_delete(accountId, containerId, versionId)

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

#  1: Yes
#  2: No

# Selection: 1

# Version 6 has been deleted.

tagId = 7

gtm_versions_delete(accountId, containerId, versionId, "TRUE")

# Version 7 has been deleted.


## End(Not run)


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