template-remove

Removes a template from a 1C:Enterprise object and updates its root XML registration.

1|2|Updated Jul 19, 2026
One-click install
npx skills add https://github.com/IngvarConsulting/unica-marketplace --skill template-remove-ingvarconsulting
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: template-remove
Source: https://github.com/IngvarConsulting/unica-marketplace/tree/main/plugins/unica/skills/template-remove
Command: npx skills add https://github.com/IngvarConsulting/unica-marketplace --skill template-remove-ingvarconsulting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Removing a template (макет) from a 1C:Enterprise configuration object requires deleting the template's XML metadata and directory, and also cleaning up its registration in the object's root XML file. Doing this by hand is error-prone and can leave dangling references such as MainDataCompositionSchema. ## Core Features & Use Cases - Template deletion via MCP: Calls the unica.template.remove MCP tool to delete the template metadata file and its directory recursively. - Root XML cleanup: Automatically removes the Template entry from the object's ChildObjects and clears MainDataCompositionSchema for reports when needed. - Safe mutation workflow: Supports dry-run mode by default and enforces vendor support guards for locked or read-only objects. - Use Case: A developer maintaining a 1C report wants to drop an obsolete layout; invoking this skill removes the template files and unregisters it from the report's XML in one operation. ## Quick Start Ask the assistant to remove the template named СтарыйМакет from the 1C object ОтчетПродажи in the src directory.

Frequently Asked Questions about template-remove

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delete a template from a 1C report or data processor?▼

Invoke the skill with the object name and template name, for example /template-remove ОтчетПродажи СтарыйМакет. It calls the unica.template.remove MCP tool, which deletes the template XML file and directory and removes its registration from the object's root XML.

What files are removed when deleting a 1C template?▼

The template metadata file at <SrcDir>/<ObjectName>/Templates/<TemplateName>.xml and the entire template directory are deleted recursively. The object's root XML is also modified to remove the Template entry from ChildObjects.

Does template removal update MainDataCompositionSchema in 1C reports?▼

Yes. For ExternalReport and Report objects, if the deleted template was referenced as MainDataCompositionSchema, that value is cleared automatically so the report XML does not keep a dangling reference.

Can I preview the deletion before applying changes?▼

Yes. The underlying MCP call runs in dry-run mode by default. The dryRun parameter is set to false only when the user explicitly requests the actual mutation.

What happens if the 1C object is locked by vendor support?▼

A vendor support guard inside the unica MCP tool blocks edits to locked or read-only supported objects. In that case, use a CFE extension or an explicit support-state change plan instead of editing raw support metadata.