delete_work_item_links
Remove outgoing links from a source work item by specifying link role and target work item ID. Idempotent: safe to retry without error.
Instructions
Delete one or more outgoing links from a single source work item.
Mirrors create_work_item_links: same source coordinates, structured
refs for each target. Only outgoing ("forward") links are removed
through this endpoint. Back links are removed by calling this tool on
the other work item (the one owning the outgoing side). External
hyperlinks live on hyperlinks and are managed via
update_work_item.
How to identify links:
From a prior
create_work_item_linkscall: reuse the same specs (dropsuspect/revision-- delete needs only role + target).From
list_work_item_links(direction="forward"): each item'sroleandid(the target's short ID) form one ref;target_project_iddefaults toproject_idfor same-project.
Idempotent at the body level: Polarion silently ignores refs whose
composite id does not match an existing link, deletes any refs that
do match, and returns 204 either way. So re-deleting an
already-removed link is a no-op, and a mixed batch (some real,
some stale) succeeds for the real ones without surfacing the
stale ones. ValueError is reserved for path-level 404 -- the
source work item itself does not exist; the body-level "link not
found" case never reaches the tool layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Source work item's project ID. | |
| work_item_id | Yes | Source work item ID (the links' outgoing endpoint). | |
| links | Yes | One or more existing outgoing links to delete. | |
| dry_run | No | When True, return payload preview without calling Polarion. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | True on a real delete; False on dry-run. | |
| dry_run | Yes | Whether this was a dry-run. | |
| link_ids | No | Composite 5-segment ids reconstructed from the request refs. | |
| payload_preview | No | JSON:API payload sent or previewed; None after real ops. |