Remove projects from teamspace
DELETE/api/v1/workspaces/{workspace_slug}/teamspaces/{teamspace_id}/projects/
Unlink projects from a teamspace. Send the project IDs in a JSON body. An empty or missing body unlinks nothing and still returns 204.
Requires the teamspace lead, or a workspace Owner or Admin. Unlinking removes the Contributor access that members had through the teamspace. Direct project memberships stay as they are.
Path Parameters
workspace_slug:requiredstringThe workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL https://app.plane.so/my-team/projects/, the workspace slug is my-team.
teamspace_id:requiredstringThe unique identifier of the teamspace.
Body Parameters
project_ids:requiredarrayIDs of the projects to unlink.
Scopes
write, teamspaces:write, or teamspaces.projects:write
Remove projects from teamspace
bash
curl -X DELETE \
"https://api.plane.so/api/v1/workspaces/my-workspace/teamspaces/teamspace-uuid/projects/" \
-H "X-API-Key: $PLANE_API_KEY" \
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"project_ids": [
"00918ea1-52f7-48bd-abe3-d3efe76ff7dd"
]
}'python
import requests
response = requests.delete(
"https://api.plane.so/api/v1/workspaces/my-workspace/teamspaces/teamspace-uuid/projects/",
headers={"X-API-Key": "your-api-key"},
json={
"project_ids": [
"00918ea1-52f7-48bd-abe3-d3efe76ff7dd"
]
}
)
print(response.status_code)javascript
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/teamspaces/teamspace-uuid/projects/",
{
method: "DELETE",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
project_ids: ["00918ea1-52f7-48bd-abe3-d3efe76ff7dd"],
}),
},
);
console.log(response.status);Response204
No response body.

