lib_delete_component
Deletes one named component from a .SchLib schematic library and marks the library dirty for deferred save; errors with COMPONENT_NOT_FOUND if the name is missing.
Instructions
Delete one symbol from a schematic library (.SchLib).
Removes the component whose LibReference is component_name and
marks the library dirty for deferred save (flushed by app_save_all).
Deletes a single named part; if the name is not found the call
errors (COMPONENT_NOT_FOUND) rather than silently doing nothing.
There is no wildcard mass-delete.
Args:
component_name: the component's LibReference (its library name).
library_path: optional absolute .SchLib path to target; defaults
to the currently focused library document.
component_index: alternative to component_name; the integer
index from lib_get_components. Use it to delete a part
whose name carries unreproducible bytes (embedded quote or
control char). Provide exactly one of the two.
Returns: {"success": true, "library_path": "...", "deleted": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library_path | No | ||
| component_name | No | ||
| component_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||