Safely deletes an object from the configuration XML dump. Before deletion, it checks for references to the object in attributes, code, and other metadata. If references are found, deletion is blocked.
Usage
/meta-remove <ConfigDir> -Object <Type.Name>
Parameters
| Parameter | Required | Description |
|---|---|---|
| ConfigDir | yes | Root directory of the dump (where Configuration.xml is) |
| Object | yes | Type and name of the object: Catalog.Товары, Document.Заказ etc. External data source table — in four parts: ExternalDataSource.PG.Table.products |
| DryRun | no | Only show what will be deleted, without changes |
| KeepFiles | no | Do not delete files, only deregister |
| Force | no | Delete despite found references; references to the object's forms are cleared in this case |
Command
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/meta-remove.ps1" -ConfigDir "<путь>" -Object "Catalog.Товары"
Supported types
Catalog, Document, Enum, Constant, InformationRegister, AccumulationRegister, AccountingRegister, CalculationRegister, ChartOfAccounts, ChartOfCharacteristicTypes, ChartOfCalculationTypes, BusinessProcess, Task, ExchangePlan, DocumentJournal, Report, DataProcessor, CommonModule, ScheduledJob, EventSubscription, HTTPService, WebService, DefinedType, Role, Subsystem, CommonForm, CommonTemplate, CommonPicture, CommonAttribute, SessionParameter, FunctionalOption, FunctionalOptionsParameter, Sequence, FilterCriterion, SettingsStorage, XDTOPackage, WSReference, StyleItem, Language
Examples
# Проверка ссылок + dry run
... -ConfigDir C:\WS\tasks\cfsrc\acc_8.3.24 -Object "Catalog.Устаревший" -DryRun
# Удалить объект без ссылок
... -ConfigDir C:\WS\tasks\cfsrc\acc_8.3.24 -Object "Catalog.Устаревший"
# Принудительно удалить несмотря на ссылки
... -ConfigDir C:\WS\tasks\cfsrc\acc_8.3.24 -Object "Catalog.Устаревший" -Force
# Только дерегистрировать (файлы оставить)
... -ConfigDir C:\WS\tasks\cfsrc\acc_8.3.24 -Object "Report.Старый" -KeepFiles
# Удалить общий модуль
... -ConfigDir src -Object "CommonModule.МойМодуль"