gtm_environments_delete | R Documentation |
This deletes a GTM environment
gtm_environments_delete( account_id, container_id, environment_id, force = c("TRUE", "FALSE") )
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 |
Other environment functions:
gtm_environments_create()
,
gtm_environments_get()
,
gtm_environments_list()
,
gtm_environments_reauthorize()
,
gtm_environments_update()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.