gtm_environments_delete {googleTagManageR} | R Documentation |
Delete an environment
Description
This deletes a GTM environment
Usage
gtm_environments_delete(
account_id,
container_id,
environment_id,
force = c("TRUE", "FALSE")
)
Arguments
account_id |
Account Id |
container_id |
Container Id |
environment_id |
Environment Id |
force |
This will bypass the user confirmation. Useful for scripted functions to avoid user input |
See Also
Other environment functions:
gtm_environments_create()
,
gtm_environments_get()
,
gtm_environments_list()
,
gtm_environments_reauthorize()
,
gtm_environments_update()
Examples
## Not run:
accountId <- 1234567
containerId <- 7654321
environmentId <- 3
gtm_environments_delete(accountId, containerId, environmentId, TRUE)
environmentId <- 4
gtm_environments_delete(accountId, containerId, environmentId)
# This will delete environment 4 Are you sure you want to continue?"
# 1: Yes
# 2: No
# Selection: 1
# Environment 4 has been deleted.
## End(Not run)
[Package googleTagManageR version 0.2.0 Index]