lib_delete_footprint
Remove a named footprint from a PCB library and deregister it, marking the .PcbLib dirty; changes stay in memory until an explicit save flushes them to disk.
Instructions
Delete one footprint from a PCB library (.PcbLib).
Finds the footprint by name, removes and deregisters it, and MARKS
the .PcbLib dirty. It does NOT write to disk: this bridge defers
saves, and app_save_all (or proj_save on the LibPkg) is what
flushes them. Reported: this said it saved, the footprint was still
in the file and the timestamp unchanged until an explicit save.
Deletes a single named footprint; if the name is not found the call errors (FOOTPRINT_NOT_FOUND). No wildcard mass-delete.
Args: footprint_name: the footprint's name in the library. library_path: optional absolute .PcbLib path to target; defaults to the currently focused library document.
Returns: {"success": true, "library_path": "...", "deleted": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library_path | No | ||
| footprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||