gtm_containers_delete | R Documentation |
This deletes a GTM container from an account. This is an irreversible process, so it's recommended that you first back up the container.
gtm_containers_delete(account_id, container_id, force = c("TRUE", "FALSE"))
account_id |
Account Id |
container_id |
Container Id |
force |
Force deletion without user input |
https://developers.google.com/tag-platform/tag-manager/api/v2/reference/accounts/containers/delete
Other container functions:
gtm_containers_create()
,
gtm_containers_get()
,
gtm_containers_list()
,
gtm_containers_update()
## Not run: accountId <- 1234567 containerId <- 7654321 gtm_conainers_delete(accountId, containerId, "TRUE") containerId <- 7654567 gtm_containers_delete(accountId, containerId) # !!WARNING!! This command will delete your container. # This operation is irrevocable. # It is strongly recommended that you create an export of your container # before you delete it, just in case you ever want it again. # Are you sure you want to continue? # 1: Yes # 2: No # Selection: 1 # Are You really sure you want to delete this container? # 1: Yes # 2: No # Selection: 1 # Container 7654567 has been deleted. ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.