remove_hierarchical_sheet
Remove a hierarchical sheet block from a KiCad schematic by name or UUID, with optional deletion of the child schematic file.
Instructions
Remove a hierarchical sheet block from a parent schematic.
Identify the sheet by name, uuid, or both. If name matches multiple sheets,
returns an error with UUIDs for disambiguation.
Args:
parent_schematic_path: Path to parent .kicad_sch
name: Sheet name to match
uuid: Sheet UUID for unambiguous identification
delete_child_file: If True, delete the child .kicad_sch file
(unless still referenced by another sheet)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_schematic_path | Yes | ||
| name | No | ||
| uuid | No | ||
| delete_child_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |