Delete components
delete_componentDelete specified components from an Altium library file. Use dry_run to preview changes without permanent modification.
Instructions
Delete one or more components from an Altium library file (.PcbLib or .SchLib). The file type is auto-detected from the extension. Returns status for each component: deleted, not_found, or error. Use dry_run=true to preview changes without modifying the file.
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": {
"filepath": "<filepath>",
"component_names": "<component_names>"
},
"name": "delete_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, show what would be deleted without actually modifying the file | |
| filepath | Yes | Path to the .PcbLib or .SchLib file | |
| component_names | Yes | Names of components to delete |