gtm_environments_delete: Delete an environment

View source: R/environments.R

gtm_environments_deleteR 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

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

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)


jamescottrill/googleTagManageR documentation built on April 21, 2022, 5:40 p.m.