gtm_workspaces_delete: Delete a workspace

View source: R/workspaces.R

gtm_workspaces_deleteR Documentation

Delete a workspace

Description

This irrevocably deletes a workspace and any work in it.

Usage

gtm_workspaces_delete(
  account_id,
  container_id,
  workspace_id,
  force = c("TRUE", "FALSE")
)

Arguments

account_id

Account Id

container_id

Container Id

workspace_id

Workspace Id

force

Force deletion without user input

See Also

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

Other workspace functions: gtm_workspaces_create(), gtm_workspaces_get(), gtm_workspaces_list(), gtm_workspaces_preview(), gtm_workspaces_resolve(), gtm_workspaces_status(), gtm_workspaces_submit(), gtm_workspaces_sync(), gtm_workspaces_update()

Examples


## Not run: 
accountId <- 1234567
containerId <- 7654321
workspaceId <- 84

gtm_workspaces_delete(accountId, containerId, workspaceId)

# This will delete Workspace %s. Are you sure you want to continue?

#  1: Yes
#  2: No

# Selection: 1

# Workspace 84 has been deleted.

workspaceId = 85

gtm_workspaces_delete(accountId, containerId, workspaceId, "TRUE")

# Workspace 85 has been deleted.


## End(Not run)


googleTagManageR documentation built on April 17, 2022, 1:05 a.m.