Actions27
- Account Actions
- Built-In Variable Actions
- Client Actions
- Container Actions
- Destination Actions
- Environment Actions
Container → Delete Container
AI-generatedOverview
This node operation deletes a Google Tag Manager (GTM) Container within a specified GTM Account. It is useful for managing GTM resources by removing containers that are no longer needed or relevant. For example, a user can automate the cleanup of outdated containers in their GTM account using this operation.
Use Case Examples
- Deleting a GTM Container by specifying the Account ID and Container ID to remove an unused container from the account.
- Automating container lifecycle management by deleting containers programmatically as part of a deployment or cleanup process.
Properties
| Name | Meaning |
|---|---|
| Account ID | The GTM Account ID where the container to be deleted resides. |
| Container ID | The GTM Container ID of the container to be deleted. |
| Optional Query Parameters | Additional optional parameters that can be passed to the delete operation, such as 'allowUserPermissionFeatureUpdate' to control user permission updates. |
Output
JSON
containerDeleteResponse- Response from the GTM API after deleting the container, typically an empty object or confirmation of deletion.
Dependencies
- Google Tag Manager API OAuth2 credentials
Troubleshooting
- Ensure that the Account ID and Container ID are correctly provided; missing these will cause errors.
- The operation requires valid Google Tag Manager API OAuth2 credentials; missing or invalid credentials will prevent the operation from executing.
- If the 'allowUserPermissionFeatureUpdate' parameter is set to false and the operation requires user permission updates, the API call will fail.