Delete a work item relation
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:requiredstringThe workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.
project_id:requiredstringThe project the resource belongs to. Accepts the project UUID or its bare identifier, for example ENG.
work_item_id:requiredstringThe 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
| Status | Code | Cause |
|---|---|---|
400 | invalid_request | The request body or a query parameter failed validation. |
401 | unauthorized | Missing or invalid credentials. |
403 | forbidden | You can't edit this work item, or your token scope doesn't allow this. |
404 | not_found | No such workspace, project, or work item, or related_work_item_id isn't a UUID. |
404 | not_found | No relation links the two work items. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
409 | governance_migration_in_progress | A governance migration is running in this workspace, so writes are paused. Retry after it finishes. |
413 | payload_too_large | The request body is over the size limit. |
415 | unsupported_media_type | The Content-Type isn't one this endpoint accepts. |
429 | rate_limited | Throttled. Honor the Retry-After header before retrying. |
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"import requests
response = requests.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/",
headers={"X-Api-Key": "your-api-key"},
)
print(response.status_code)const response = await fetch(
"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/",
{
method: "DELETE",
headers: {
"X-Api-Key": "your-api-key",
},
},
);
console.log(response.status);No response body.

