Skip to content

Remove imported work item types ​

DELETE/api/v2/workspaces/{slug}/projects/{project_id}/work-item-types/import/

Take a set of workspace work item types out of one project. This is the inverse of Import work item types: the types stay on the workspace, and other projects that use them are unaffected. Only this project stops offering them.

Send the ids in a JSON body on the DELETE request. A successful removal returns 200 with no body.

The removal is all-or-nothing. Plane checks every id first, and if any one of them can't be removed, it removes none of them and returns the reason for each failing id. See Why a type can't be removed.

Requires workspace mode

Like import, removal only makes sense when the workspace manages types at the workspace level. Calling it while the workspace runs in project mode returns 409 work_item_types_managed_at_project. In project mode a project deletes its own types with Delete a work item type. See Work item type modes.

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 (uuid)

The project to remove the types from.

Body parameters ​

work_item_types:requiredarray of string (uuid)

The ids of the workspace work item types to take out of this project. It must be a non-empty array of UUIDs. Duplicate ids count once.

Scopes ​

projects.work_item_types:write

Errors ​

StatusCodeCause
400invalid_requestwork_item_types is missing, empty, or has an entry that isn't a UUID. Or at least one type can't be removed. Read failures.
401unauthorizedMissing or invalid credentials.
402payment_requiredThe feature this endpoint belongs to isn't enabled on your plan, or is switched off.
403forbiddenYour role or token scope can't configure this project's work item types.
404not_foundNo such workspace or project. Or every id that failed is not_found: no type with that id is in this project.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409work_item_types_managed_at_projectThe workspace manages types per project. Delete the project's type instead.
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.
Remove imported work item types
bash
curl -X DELETE \
  "https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/work-item-types/import/" \
  -H "X-Api-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "work_item_types": ["d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240"]
}'
Response200

No response body.

Response400
json
{
  "type": "invalid_request",
  "code": "invalid_request",
  "detail": "Cannot remove work item types. The request is all-or-nothing; no types were removed.",
  "error_code": "REMOVAL_REJECTED",
  "failures": [
    {
      "id": "d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240",
      "code": "TYPE_IN_USE_IN_PROJECT",
      "error": "Cannot remove work item type with 12 associated work items",
      "count": 12
    }
  ],
  "count": 12
}
Response409
json
{
  "type": "conflict",
  "code": "work_item_types_managed_at_project",
  "detail": "Work item types are managed at the project level for this workspace."
}

Why a type can't be removed ​

When the removal is rejected, the response has error_code: "REMOVAL_REJECTED" and a failures array with one entry per failing id. Each entry has the id, a code, and a readable error. The status is 404 when every failure is not_found, and 400 otherwise.

codeWhy
not_foundThe id isn't a type in this project.
CANNOT_REMOVE_PROJECT_OWNED_TYPEThe project owns the type. Delete it with Delete a work item type instead.
mandatory_typeThe workspace rolls the type out as mandatory, so every project keeps it.
CANNOT_REMOVE_EPIC_WORK_ITEM_TYPEThe type is the epic type.
CANNOT_REMOVE_DEFAULT_WORK_ITEM_TYPEThe type is this project's default. Mark another type as default first.
TYPE_IN_USE_IN_PROJECTWork items or drafts in this project still use the type. The entry's count says how many. Move them to another type first.
LAST_ACTIVE_WORK_ITEM_TYPEThe removal would leave the project with no active type other than the epic type. This entry has no id.

When there is exactly one failure and it carries a count, the response also repeats that count at the top level.

What a removal changes ​

Plane takes the types out of the project. For project settings that use a removed type:

  • Intake forms in this project that create work items of a removed type are turned off.
  • The project's workflow for each removed type is unset. In a workspace with workspace governance, a workflow the workspace pinned for this project and type is kept, so importing the type again restores it.
  • Recurring work item schedules in this project whose template uses a removed type are turned off, not deleted.
  • Work item templates that use a removed type are left as they are. They can't create work items until the type is back in the project.

The types themselves, their properties, and their use in other projects don't change. To add a type back, import it again.