ga4_archive_custom_metric
Archives a GA4 custom metric to permanently remove it from active reporting; no un-archive is available, and it requires confirm=true with deletes enabled.
Instructions
[GA4 DELETE] Archive a custom metric (there is no hard delete). Archiving is effectively permanent (no un-archive). Requires GA4_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": {
"name": "<name>",
"confirm": "<confirm>"
},
"name": "ga4_archive_custom_metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full resource name of the custom metric to target: "properties/{property}/customMetrics/{id}". | |
| confirm | Yes | Must be true to archive. |