Delete a template block
Delete a block by id or exact name. Answers 409 while any step still cites it.
DELETE
https://app.trygtm.com/api/v1/blocks/{block}- Scope
write- MCP tool
- delete_block
Path parameters
blockstringrequired- The block, by id or exact name (case-insensitive).
Headers
Idempotency-Keystringoptional- A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.
Request
curl -X DELETE https://app.trygtm.com/api/v1/blocks/%E2%80%A6 \
-H "Authorization: Bearer $TRYGTM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"Response
{
"data": {
"detail": "Block deleted.",
"block": {
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
}
}
}