gtm_variables_delete {googleTagManageR} | R Documentation |
Delete a variable
Description
This deletes a variable in a GTM workspace
Usage
gtm_variables_delete(
account_id,
container_id,
workspace_id,
variable_id,
force = c(TRUE, FALSE)
)
Arguments
account_id |
Account Id |
container_id |
Container Id |
workspace_id |
Workspace Id |
variable_id |
Variable Id |
force |
Force deletion without user input |
See Also
Other variable functions:
gtm_variables_create()
,
gtm_variables_get()
,
gtm_variables_list()
,
gtm_variables_revert()
,
gtm_variables_update()
Examples
## Not run:
accountId <- 1234567
containerId <- 7654321
workspaceId <- 10
variableId <- 30
gtm_variables_delete(accountId, containerId, workspaceId, variableId)
# This will delete tag %s. Are you sure you want to continue?
# 1: Yes
# 2: No
# Selection: 1
# Variable 30 has been deleted.
variableId = 31
gtm_variables_delete(accountId, containerId, workspaceId, variableId, "TRUE")
# Variable 31 has been deleted.
## End(Not run)
[Package googleTagManageR version 0.2.0 Index]