delete_library_footprint
Delete a footprint from a project library, as "Delete" of the library tree of the footprint editor of KiCad 10 does: KiCad removes the file of the footprint.
Instructions
Delete a footprint from a project library, as "Delete" of the library tree of the footprint editor of KiCad 10 does: KiCad removes the file of the footprint.
KiCad does not change the uses of the footprint, and neither does the tool: the answer gives as a warning the Footprint fields of the placed symbols (also of their variants) and of the symbols of the project symbol libraries, and the footprints of the board of the project, that have its library ID. The board keeps its copy of each footprint.
The library must be a footprint library of the project table, in the version of the installed KiCad (else: upgrade_project_libraries first). KiCad must not have the project open. The installed KiCad must be KiCad 10.0.
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": {
"project_path": "<project_path>",
"lib_id": "<lib_id>"
},
"name": "delete_library_footprint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lib_id | Yes | The footprint, "<library>:<footprint>", of a library of the project table. | |
| project_path | Yes | The .kicad_pro file or the project folder. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |