Remove Hierarchical Sheet
remove_hierarchical_sheetRemove a hierarchical sheet reference from a parent KiCad schematic by matching sheet name or sub-sheet file. Deletes the sheet block and instance entry, leaving the sub-sheet file intact.
Instructions
Remove a hierarchical-sheet reference from a parent schematic (the reverse of add_hierarchical_sheet). Identify the sheet by sheetName (matches the sheet's name property) or by subsheetPath (matched by basename against the sheet's file property). Deletes the (sheet ...) block and any matching (sheet_instances) page entry. Does NOT delete the sub-sheet .kicad_sch file on disk.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"schematicPath": "<schematicPath>"
},
"name": "remove_hierarchical_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheetName | No | Sheet display name to remove (matches the Sheetname/Sheet name property) | |
| subsheetPath | No | Sub-sheet file to remove (matched by basename against the Sheetfile property) | |
| schematicPath | Yes | Path to the parent .kicad_sch |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |