Skip to content

Delete a work item relation definition ​

DELETE/api/v2/workspaces/{slug}/work-item-relation-definitions/{pk}/

Remove a custom relation definition from the workspace. A successful delete returns 204 with an empty body.

Plane then removes every relation that uses the definition, in the background, across all projects. To retire a relation type and keep its relations, update it with is_active: false instead.

The definition's name and labels become free, so a new definition can reuse them.

The three default definitions can't be deleted. Deleting one returns 400.

You need to be a workspace owner or admin, and the workspace's plan must include custom relations, or the response is 402.

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.

pk:requiredstring (uuid)

The id of the relation definition to delete.

Response shaping ​

fields:optionalstring

Comma-separated list of fields to return. Fields you don't request are left out of the response instead of coming back as null, so a missing key means you didn't ask for it and null means the value is null. id is always included, whether or not you name it.

Pass all to get every requestable field. An unknown field name returns 400 with the list of valid names and the closest match, so a typo is caught instead of being silently ignored.

Requestable here: color, created_at, created_by_id, description, external_id, external_source, id, inward, is_active, is_default, logo_props, name, outward, sort_order, updated_at, updated_by_id.

See Sparse fields.

Scopes ​

workspaces.work_item_relation_definitions:write

Errors ​

StatusCodeCause
400invalid_requestThe definition is a default one, so it can't be deleted.
401unauthorizedMissing or invalid credentials.
402payment_requiredCustom relations aren't included in the workspace's plan.
403forbiddenYou aren't a workspace owner or admin, or your token scope doesn't allow this.
404not_foundNo such definition or workspace, or it's outside your tenant.
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.

A repeat delete returns 404

The second call for the same id returns 404 not_found, because the definition is already gone. Treat 404 on retry as success.

Delete a work item relation definition
bash
curl -X DELETE \
  "https://api.plane.so/api/v2/workspaces/my-team/work-item-relation-definitions/7a4c9e12-5f3b-4d68-8e01-2b6d9f4a3c85/" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response204

No response body.

Response400
json
{
  "type": "invalid_request",
  "code": "invalid_request",
  "detail": "A default relation definition cannot be deleted."
}