1c-template-remove

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

40|11|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/Desko77/claude-code-skills-1c --skill 1c-template-remove
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-template-remove
Source: https://github.com/Desko77/claude-code-skills-1c/tree/main/skills/1c-template-remove
Command: npx skills add https://github.com/Desko77/claude-code-skills-1c --skill 1c-template-remove

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Deleting a template from a 1C object and updating its root XML to remove stale template references, preventing inconsistencies in the configuration.

Core Features & Use Cases

  • Remove a template's metadata file and its Templates/<TemplateName> directory.
  • Automatically remove the corresponding <Template> entry from the object's root XML and clear any MainDataCompositionSchema references if needed.
  • Supports both PowerShell and Python implementations for flexibility in your environment.

Quick Start

Run the script with -ObjectName and -TemplateName to remove the specified template.

Frequently Asked Questions about 1c-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 and update the root XML?

To remove a 1C template, the script deletes the template's metadata file and directory, then updates the object's root XML to clear the corresponding <Template> entry. This ensures the 1C configuration remains consistent without stale references.

What is the directory structure required to delete a 1C template properly?

The 1C template removal requires a source project organized as src/ObjectName/Templates/TemplateName. You must have a valid ObjectName.xml root file and a matching Templates/TemplateName.xml for the script to process the deletion correctly.

Can I use Python or PowerShell to clean up 1C template references?

Yes, the 1C template cleanup supports both Python and PowerShell implementations. The Python version requires the lxml dependency to parse and modify the root XML, giving you flexibility based on your environment.

Does removing a 1C template also clear MainDataCompositionSchema references?

Yes, removing a 1C template automatically clears any MainDataCompositionSchema references found in the object's root XML. This prevents broken links and metadata inconsistencies in your 1C configuration after deletion.

How do I specify the source path when deleting a 1C object template?

You can specify the source path using optional SrcDir support when running the template removal script. Provide the -ObjectName and -TemplateName parameters to target the exact template for deletion within your 1C project.

Why does my 1C configuration break after manually deleting a template directory?

Manually deleting a 1C template directory leaves stale <Template> entries in the object's root XML, causing configuration inconsistencies. You need to update the root XML accordingly to remove these broken references and restore stability.