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

# Delete Widget

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

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/dashboards/{dashboardId}/widgets/{widgetId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/dashboards/:dashboardId/widgets/:widgetId/delete.ts> (a function with typed inputs; its response is checked against the schema)

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.

## Changes

> 54 revisions in range; 3 not diffed.

- **2026-06-30** `8b6c262fba71`: 1 info
  - endpoint added
- **2026-06-29** `a3c9e9461f9c`: 1 breaking
  - api path removed without deprecation
- **2026-06-29** `77c4156f18d2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/changes/v1/dashboards/:dashboardId/widgets/:widgetId/delete.md)

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
