environments_delete
Delete a Google Tag Manager environment by account, container, and environment ID. Requires explicit confirmation and the deletes flag enabled, so mutations stay gated.
Instructions
[DELETE] Delete a GTM environment. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>",
"containerId": "<containerId>",
"environmentId": "<environmentId>",
"confirm": "<confirm>"
},
"name": "environments_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to confirm this delete operation. | |
| accountId | Yes | The GTM account ID. | |
| containerId | Yes | The GTM container ID. | |
| environmentId | Yes | The GTM environment ID to delete. |