remove_component
Removes a specified component (by reference designator) from an LTspice .asc schematic, with optional cleanup of connected wires.
Instructions
Remove a component from an .asc schematic by reference designator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to .asc schematic | |
| reference | Yes | Component reference to remove (e.g., 'R1', 'M3') | |
| cleanup_wires | No | When true, also delete every wire whose endpoint touches one of the removed component's pins (Fr7). Default false keeps the v2 behaviour of leaving wires in place and surfacing a warning, so callers can opt in once they've confirmed the removal is clean. |