project_remove_document
Remove a document from a user project while keeping its parts and exclude it so project sync does not add it again; delete the local copy only when no part uses it.
Instructions
Remove a document from the parts of the user project; the parts stay. The project remembers it (exclude), so that project_sync does not add it again; project_add_part with this document adds it again. The copy is deleted when no part uses it. The central store does not change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | No | Only from this part. Empty: from each part that has it. | |
| 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. | |
| document | Yes | The document: its reference, a SHA-256 prefix, its document ID, or its file name in the project folder. | |
| 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 |