Delete an audience
Delete an audience. Plane first detaches it from every work item type and work item it is attached to, then deletes it, in one transaction. A successful delete returns 204 with no body.
The work items it restricted stop being restricted by it. Unless another active audience still applies, they become visible to anyone with normal project access, and in published projects to anyone with the link. Each affected work item gets a "removed audience" entry in its activity. Plane adds those entries in the background, so they can appear a moment after the delete returns.
The audience's own activity feed goes with it and returns 404 afterwards. Its name becomes free for a new audience.
Disable instead of deleting
To lift an audience's restriction without losing its lists and attachments, send "is_active": false to Update an audience. Turning it back on restores the restriction everywhere it was attached. A delete can't be undone through the API.
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.
pk:requiredstring (uuid)The id of the audience to delete.
Scopes
workspaces.audiences:write
Errors
| Status | Code | Cause |
|---|---|---|
401 | unauthorized | Missing or invalid credentials. |
402 | payment_required | Work item security isn't on your plan, or is switched off. |
403 | forbidden | Your role can't delete audiences, or your token scope doesn't allow this. |
404 | not_found | No such audience in this workspace, you can't view audiences, or it's outside your tenant. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
429 | rate_limited | Throttled. Honor the Retry-After header before retrying. |
curl -X DELETE \
"https://api.plane.so/api/v2/workspaces/my-team/audiences/33d89ed2-712a-4fc0-93cf-91eedbba5ef1/" \
-H "X-Api-Key: $PLANE_API_KEY"import requests
response = requests.delete(
"https://api.plane.so/api/v2/workspaces/my-team/audiences/33d89ed2-712a-4fc0-93cf-91eedbba5ef1/",
headers={"X-Api-Key": "your-api-key"},
)
print(response.status_code)const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/audiences/33d89ed2-712a-4fc0-93cf-91eedbba5ef1/",
{
method: "DELETE",
headers: {
"X-Api-Key": "your-api-key",
},
},
);
console.log(response.status);No response body.
{
"type": "not_found",
"code": "not_found",
"detail": "The requested resource was not found."
}
