Delete a dashboard
DELETE/api/v2/workspaces/{slug}/dashboards/{pk}/
A dashboard is a workspace page of charts built from the work items in one or more projects. Delete a dashboard and its widgets. The dashboard also leaves every user's favorites, and its public link stops serving straight away. A later GET returns 404.
Only the owner can delete a dashboard, or a workspace admin when it's public.
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 dashboard ID.
Scopes
workspaces.dashboards:write, or the broad write scope.
Errors
| Status | Code | Cause |
|---|---|---|
401 | unauthorized | Missing or invalid credentials. |
402 | payment_required | Dashboards aren't included in the workspace's plan, or you aren't a member of the workspace. |
403 | forbidden | You aren't the owner, or an admin on a public dashboard. |
404 | not_found | The dashboard doesn't exist, or you can't see it. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
429 | rate_limited | Throttled. Wait for the Retry-After header's seconds before retrying. |
Delete a dashboard
bash
curl -X DELETE \
"https://api.plane.so/api/v2/workspaces/my-team/dashboards/05186e3b-94a3-49b0-8403-9307d292daea/" \
-H "X-Api-Key: $PLANE_API_KEY"python
import requests
response = requests.delete(
"https://api.plane.so/api/v2/workspaces/my-team/dashboards/05186e3b-94a3-49b0-8403-9307d292daea/",
headers={"X-Api-Key": "your-api-key"},
)
print(response.status_code)javascript
const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/dashboards/05186e3b-94a3-49b0-8403-9307d292daea/",
{
method: "DELETE",
headers: {
"X-Api-Key": "your-api-key",
},
},
);
console.log(response.status);Response204
No response body.
Response404
json
{
"type": "not_found",
"code": "not_found",
"detail": "The requested resource was not found."
}
