delete_work_item_links
Remove one or more outgoing links from a source work item. Identifies deleted and not-found links for transparent results.
Instructions
Delete one or more outgoing links (1-50) from a single source work item.
Mirrors create_work_item_links. Only outgoing links removed (delete a
back link on the other work item). Identify refs from a prior create or from
list_work_item_links(direction="forward").
Polarion's delete is idempotent and silent (204 even for stale refs). To make
no-ops visible the tool pre-reads existing links and splits into
deleted_link_ids / not_found_link_ids (no-op reported, never raised).
Pre-read is fail-closed (RuntimeError before any delete).
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 (1-50). | |
| dry_run | No | When True, return payload preview without calling Polarion. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | ||
| dry_run | Yes | ||
| link_ids | No | ||
| deleted_link_ids | No | ||
| not_found_link_ids | No | ||
| payload_preview | No |