Remove imported work item types
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:requiredstringThe 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
| Status | Code | Cause |
|---|---|---|
400 | invalid_request | work_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. |
401 | unauthorized | Missing or invalid credentials. |
402 | payment_required | The feature this endpoint belongs to isn't enabled on your plan, or is switched off. |
403 | forbidden | Your role or token scope can't configure this project's work item types. |
404 | not_found | No such workspace or project. Or every id that failed is not_found: no type with that id is in this project. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
409 | work_item_types_managed_at_project | The workspace manages types per project. Delete the project's type instead. |
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-item-types/import/" \
-H "X-Api-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"work_item_types": ["d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240"]
}'import requests
response = requests.delete(
"https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/work-item-types/import/",
headers={"X-Api-Key": "your-api-key"},
json={"work_item_types": ["d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240"]},
)
print(response.status_code)const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/projects/4af68566-94a4-4eb3-94aa-50dc9427067b/work-item-types/import/",
{
method: "DELETE",
headers: {
"X-Api-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
work_item_types: ["d1e7a4c9-2b58-4f36-9a0e-7c3b5d81f240"],
}),
},
);
console.log(response.status);No response body.
{
"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
}{
"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.
code | Why |
|---|---|
not_found | The id isn't a type in this project. |
CANNOT_REMOVE_PROJECT_OWNED_TYPE | The project owns the type. Delete it with Delete a work item type instead. |
mandatory_type | The workspace rolls the type out as mandatory, so every project keeps it. |
CANNOT_REMOVE_EPIC_WORK_ITEM_TYPE | The type is the epic type. |
CANNOT_REMOVE_DEFAULT_WORK_ITEM_TYPE | The type is this project's default. Mark another type as default first. |
TYPE_IN_USE_IN_PROJECT | Work 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_TYPE | The 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.

