# delete_template

Delete a template by ID.

Agent View of the PolicyLayer registry record for `delete_template`. HTML page: https://policylayer.com/tools/desko77-1c-templates-mcp/delete-template

## Facts

- Tool: `delete_template`
- Server: 1c Templates (`desko77/1c-templates-mcp`) — https://policylayer.com/tools/desko77-1c-templates-mcp.md
- Homepage: https://github.com/Desko77/1c-templates-mcp
- Risk category: Destructive (Critical risk)
- Registry record: grade D, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Hidden

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_template",
    "arguments": {}
  }
}
```

## Why delete_template is rated Critical

This tool removes templates from the database with no undo mechanism. Deletion is irreversible and constitutes a destructive operation. While the blast radius is limited to template data rather than critical systems, unauthorized or mistaken deletion of community templates (from a collection of 2262+) could harm users relying on those templates.

From the tool's own definition: "delete_template: Delete a template by ID. The tool name and description explicitly indicate irreversible deletion of data."

## Use case

AI agents call delete_template to permanently remove resources in 1c Templates, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

## Recommended policy (PolicyLayer)

Verdict: **Hidden**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches 1c Templates:

```json
{
  "version": "1",
  "default": "deny",
  "hide": [
    "delete_template"
  ]
}
```

## Other tools on 1c Templates (5)

- `get_template` — Read — https://policylayer.com/tools/desko77-1c-templates-mcp/get-template.md
- `list_templates` — Read — https://policylayer.com/tools/desko77-1c-templates-mcp/list-templates.md
- `templatesearch` — Read — https://policylayer.com/tools/desko77-1c-templates-mcp/templatesearch.md
- `add_template` — Write — https://policylayer.com/tools/desko77-1c-templates-mcp/add-template.md
- `update_template` — Write — https://policylayer.com/tools/desko77-1c-templates-mcp/update-template.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=desko77-1c-templates-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/desko77-1c-templates-mcp
