lib_remove_model
Removes model implementations from a SchLib component by name, with an option to keep one match and delete duplicate links.
Instructions
Remove models (implementations) from a SchLib component by name.
Removes every implementation whose ModelName equals model_name. With keep_one=True it keeps the first match and removes the rest, which deletes duplicate model links while preserving one. Errors if the component is not found; returns removed=0 if no model matches.
Args: component_name: the component's LibReference. model_name: the ModelName of the model(s) to remove. keep_one: keep the first match and remove the rest (dedup). library_path: optional .SchLib path; defaults to the focused lib.
Returns: {"success": true, "model_name": "...", "removed": N, "kept_one": bool}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_one | No | ||
| model_name | Yes | ||
| library_path | No | ||
| component_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||