gtm_environments_delete: Delete an environment

Description Usage Arguments See Also Examples

View source: R/environments.R

Description

This deletes a GTM environment

Usage

1
2
3
4
5
6
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-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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## 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)

googleTagManageR documentation built on Oct. 23, 2020, 6:32 p.m.