---
title: "Delete Widget"
method: DELETE
path: "/v1/dashboards/{dashboardId}/widgets/{widgetId}"
tags: ["Dashboards"]
---

# Delete Widget

`DELETE /v1/dashboards/{dashboardId}/widgets/{widgetId}`

Detaches a widget from a dashboard. The widget is hard-deleted only when it is no longer attached to any other dashboard.

## Path parameters

- `dashboardId` string, required
- `widgetId` string, required

## Response `200`

The id of the affected widget.

- DashboardIdResponse
  - `success` boolean, required — Indicates if the request was successful.
  - `data` object, required — The id of the affected dashboard or widget.
    - `id` string, required — The id of the affected dashboard or widget.
  - `deprecated` boolean, required — Indicates if this endpoint is deprecated.

---

[API](https://skmtc.net/confident-ai/apis/confident-ai-metrics-api.md) · [All operations](https://skmtc.net/confident-ai/apis/confident-ai-metrics-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/confident-ai/confident-ai-metrics-api/revisions/95cdde71b65e/schema)
