This deletes a zone in a GTM workspace
gtm_zones_delete(
account_id,
container_id,
workspace_id,
zone_id,
force = c("TRUE", "FALSE")
)
Account Id
Container Id
Workspace Id
Zone Id
Force deletion without user input
Other zone functions:
gtm_zones_create()
,
gtm_zones_get()
,
gtm_zones_list()
,
gtm_zones_revert()
,
gtm_zones_update()
# NOT RUN {
# }
# NOT RUN {
accountId <- 1234567
containerId <- 7654321
workspaceId <- 11
zoneId <- 3
gtm_zones_delete(accountId, containerId, workspaceId, zoneId, "TRUE")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab