project_remove_part
Removes a part from the user project and deletes its unused copies while preserving pinned files and the central store.
Instructions
Remove a part from the user project, and delete its copies that no other part uses. A file that the user put into the folder (pinned) stays, unless delete_pinned is true. The central store does not change, because other projects can use the part. To change the MPN of a part, use project_update_part. Gives the removed part and the deleted and kept files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | Yes | The MPN of the project part. | |
| path | No | A folder of the user project (default: the working folder of the server). The project file datasheet-lens.toml is in it or in a parent folder. | |
| dry_run | No | True: change nothing, only tell what would change. | |
| manufacturer | No | The manufacturer, for example TI. Necessary only when two parts have the same MPN. | |
| delete_pinned | No | True: also delete a file that the user put into the project folder (pinned = true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |