1c-form-remove

Remove a form from a 1C object's XML metadata and filesystem.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Removes a form from a 1C object (processor, report, catalog, document, and others) by deleting its metadata and unregistering it from the root XML object.

Core Features & Use Cases

  • Removes the form's metadata XML file (Forms/<FormName>.xml) and the form directory (Forms/<FormName>/).
  • Updates the root object's XML: removes the <Form>FormName</Form> entry from ChildObjects and clears DefaultForm if it pointed to the removed form.
  • Works with 1C objects in typical configuration tasks, such as processing forms in reports, documents, and information bases.

Quick Start

Remove the specified form from the target 1C object by providing the ObjectName and FormName.

Frequently Asked Questions about 1c-form-remove

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

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

To remove a 1C form, you delete the form directory and its metadata XML, then update the root XML by removing the ChildObjects entry and clearing the DefaultForm reference.

What happens to the root XML metadata when a 1C form is deleted?

When a 1C form is deleted, the root XML metadata is updated by removing the <Form> entry from ChildObjects and clearing the DefaultForm tag if it referenced the removed form.

How do I clean up unused forms from 1C processing modules and reports?

You can clean up unused forms from 1C processing modules and reports by deleting the form directory and its XML metadata file, ensuring the root XML configuration stays consistent.

Does removing a 1C form preserve the UTF-8 BOM in the XML metadata?

Yes, removing a 1C form preserves the UTF-8 BOM. The script updates the root XML document and saves it while maintaining the original UTF-8 BOM encoding.

What 1C objects are supported for form removal?

Form removal is supported for 1C configuration objects including processing modules, reports, catalogs, and documents, updating both the filesystem and XML metadata.

Do I need lxml to delete forms from 1C configurations?

Yes, you need lxml installed. The form removal script uses the lxml library to parse, modify, and save the 1C XML metadata documents correctly.