folders_delete
Delete a GTM folder while keeping its contents by moving them to the workspace root, not deleting them. Requires delete flag enabled and per-call confirmation.
Instructions
[DELETE] Delete a GTM folder. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true. Contents of the folder will be unfoldered, not deleted.
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>",
"workspaceId": "<workspaceId>",
"folderId": "<folderId>",
"confirm": "<confirm>"
},
"name": "folders_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| folderId | Yes | ||
| accountId | Yes | ||
| containerId | Yes | ||
| workspaceId | Yes |