Delete work package relation
delete_work_package_relationRemove a relationship between work packages to clear a dependency. This action is permanent; recreate the relation later if needed.
Instructions
Remove the link between two work packages.
Use it when a dependency no longer holds. Neither work package is touched, only the relation between them. Returns a small confirmation object.
Pitfalls. Deleting a follows relation drops the scheduling
constraint, so OpenProject may reschedule the work package that was
waiting. There is no undo; recreating the relation with
create_work_package_relation is the only way back. A second delete
of the same id answers 404. Parent/child hierarchy is not a relation —
clear it with update_work_package(parent_id=null).
Cross-references: get_work_package(include=['relations']) shows what
would be removed; update_work_package_relation changes a relation
instead of removing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true. Ask the user first — the API offers no undo. Calling with confirm=false returns a confirmation_required error and deletes nothing. | |
| relation_id | Yes | Id of the relation to remove permanently. It comes from create_work_package_relation or get_work_package(include=['relations']). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the relation that was deleted. | |
| deleted | Yes | True once OpenProject accepted the deletion. | |
| message | Yes | Human-readable confirmation. |