Skip to content

Delete a widget ​

DELETE/api/v2/workspaces/{slug}/dashboards/{dashboard_id}/widgets/{pk}/

A widget is one chart on a dashboard. Remove a widget from its dashboard. A later GET of the widget returns 404.

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.

dashboard_id:requiredstring (uuid)

The dashboard the widget is on.

pk:requiredstring (uuid)

The widget ID. A widget on a different dashboard returns 404.

Scopes ​

workspaces.dashboards.widgets:write, or the broad write scope.

Errors ​

StatusCodeCause
401unauthorizedMissing or invalid credentials.
402payment_requiredDashboards aren't included in the workspace's plan, or you aren't a member of the workspace.
403forbiddenYou can see the dashboard but can't edit it.
404not_foundThe dashboard or widget doesn't exist, or you can't see the dashboard.
406not_acceptableThe Accept header asks for a representation the API can't produce.
429rate_limitedThrottled. Wait for the Retry-After header's seconds before retrying.
Delete a widget
bash
curl -X DELETE \
  "https://api.plane.so/api/v2/workspaces/my-team/dashboards/05186e3b-94a3-49b0-8403-9307d292daea/widgets/0bda418f-3e9a-47bd-8e70-faa04e1f9540/" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response204

No response body.