Skip to content

Delete a work item relation ​

DELETE/api/v2/workspaces/{slug}/projects/{project_id}/work-items/{work_item_id}/relations/{related_work_item_id}/

Remove a relation between the path work item and another work item. Name the other work item in the path. A relation has no id of its own. A successful delete returns 204 with an empty body.

The call works from either side, whichever work item the relation was created on. Deleting on ENG-17 with ENG-42's id removes the same relation as deleting on ENG-42 with ENG-17's id.

If the two work items have more than one relation, for example both relates to and tests, one call removes only the most recently created one. Call it again to remove the next. You can't choose which definition to remove. A relation whose definition is inactive counts too, even though lists don't show it.

You need edit access to the path work item. Project admins, contributors, and workspace owners and admins have it. Deleting a relation adds an entry to the path work item's activity.

Path parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

project_id:requiredstring

The project the resource belongs to. Accepts the project UUID or its bare identifier, for example ENG.

work_item_id:requiredstring

The work item the resource belongs to. Accepts the work item UUID or its PROJ-123 identifier.

related_work_item_id:requiredstring (uuid)

The UUID of the other work item in the relation, not a relation id. Only a UUID works here. A PROJ-123 identifier doesn't match the route and returns 404.

Scopes ​

projects.work_items.relations:write

Errors ​

StatusCodeCause
400invalid_requestThe request body or a query parameter failed validation.
401unauthorizedMissing or invalid credentials.
403forbiddenYou can't edit this work item, or your token scope doesn't allow this.
404not_foundNo such workspace, project, or work item, or related_work_item_id isn't a UUID.
404not_foundNo relation links the two work items.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409governance_migration_in_progressA governance migration is running in this workspace, so writes are paused. Retry after it finishes.
413payload_too_largeThe request body is over the size limit.
415unsupported_media_typeThe Content-Type isn't one this endpoint accepts.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Delete a work item relation
bash
curl -X DELETE \
  "https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/work-items/8c3d1f72-4a9e-4b65-9d20-6e1f3b7a5c48/relations/3d8f5a62-7b1e-4c94-a0d3-9e6c2f8b1a57/" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response204

No response body.