template-remove

Remove a template from a 1C object and update its root XML.

41|5|Updated May 28, 2026
One-click install
npx skills add https://github.com/msrv-tech/skills --skill template-remove-msrv-tech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: template-remove
Source: https://github.com/msrv-tech/skills/tree/main/template-remove
Command: npx skills add https://github.com/msrv-tech/skills --skill template-remove-msrv-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, and includes scripts (resource) components.

What problem does it solve?

Удаляет макет из объекта 1С (обработка, отчёт, справочник, документ и др.) и удаляет связанные данные о макете, чтобы очистить конфигурацию.

Core Features & Use Cases

  • Удаление файлов макета: файл метаданных <TemplateName>.xml и каталог Templates/<TemplateName>.
  • Обновление корневого XML объекта: удаление элемента Template из ChildObjects и очистка MainDataCompositionSchema, если она указывала на удалённый макет.
  • Поддержка двух реализаций: PowerShell и Python, позволяя выбрать подходящий способ удаления.

Quick Start

Запустите удаление макета командой template-remove, указав ObjectName и TemplateName, чтобы удалить указанный макет из объекта 1С.

Frequently Asked Questions about template-remove

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

FAQPage Schema
How do I remove a template from a 1C object configuration?

The template removal process deletes the template metadata file and folder, then updates the root object XML by removing the ChildObjects template element and clearing any MainDataCompositionSchema reference pointing to it.

What happens to MainDataCompositionSchema when I delete a 1C template?

When you delete a 1C template, the removal process checks the root object XML and clears the MainDataCompositionSchema property if it was linked to the deleted template, ensuring no broken references remain in the configuration.

Can I use Python or PowerShell to automate 1C template removal?

Yes, you can automate 1C template removal using either Python or PowerShell scripts, allowing you to select the scripting approach that best fits your automation environment and object management workflow.

Do I need lxml to run the 1C template removal script?

Yes, the Python implementation requires the lxml library to parse and modify the 1C object XML files, ensuring accurate deletion of template metadata and proper updating of the root configuration XML.