template-remove

Remove a 1C template and update its XML metadata references.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Alex1980Alex/1C-Framework --skill template-remove-alex1980alex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: template-remove
Source: https://github.com/Alex1980Alex/1C-Framework/tree/main/external/cc-1c-skills/.claude/skills/template-remove
Command: npx skills add https://github.com/Alex1980Alex/1C-Framework --skill template-remove-alex1980alex

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes an unwanted 1C template from an object package and keeps the object’s XML metadata in sync, so you do not have to manually clean up files and registrations.

Core Features & Use Cases

  • Template Deletion: Removes the template metadata file and its folder from the object’s Templates directory.
  • Registry Cleanup: Updates the root object XML by removing the matching Template entry from ChildObjects.
  • Schema Reset: Clears MainDataCompositionSchema when it still points to the removed template.
  • Use Case: Use it when refactoring a 1C processing object, report, or other metadata object and you need to fully delete an obsolete template without leaving broken references behind.

Quick Start

Ask the skill to remove the named template from the specified 1C object and update all related XML references automatically.

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 1C template without breaking XML metadata references?

To delete a 1C template safely, you must remove its metadata file and folder while simultaneously updating the root object XML to delete the matching ChildObjects entry, ensuring the metadata registry remains consistent and free of broken references.

How do I clean up MainDataCompositionSchema after removing a 1C template?

After removing a 1C template, MainDataCompositionSchema must be cleared if it still points to the deleted template, preventing dangling schema references during object refactoring and ensuring the 1C configuration directory remains valid.

Can I use Python and lxml to automate 1C template removal and XML editing?

Yes, you can use Python with the lxml dependency to perform namespace-aware XML editing on 1C configuration directories, executing deterministic file deletion and registry cleanup while preserving the UTF-8 BOM.

What files need to be updated when refactoring a 1C processing object?

Refactoring a 1C processing object requires updating the template metadata file, the template folder within the Templates directory, and the root object XML file together to maintain metadata synchronization during cleanup.

Does removing a 1C template affect the UTF-8 BOM in XML configuration files?

Removing a 1C template requires XML namespace-aware editing that preserves the existing UTF-8 BOM in configuration files, ensuring the 1C platform correctly reads the modified root object XML and ChildObjects registry.

Why does 1C metadata become inconsistent when manually deleting template folders?

Manually deleting template folders breaks 1C metadata consistency because the root object XML still retains the template's ChildObjects entry, requiring deterministic file deletion paired with automated XML registry cleanup to prevent broken references.