---
title: "Delete Widget"
method: DELETE
path: "/api/v1/widgets/{widget_id}"
tags: ["Widgets"]
---

# Delete Widget

`DELETE /api/v1/widgets/{widget_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/v1/widgets/{widget_id}`
- Auth: none declared

Delete a widget. This also deletes every conversation it produced and their messages, and cannot be undone.

A widget is its own channel, so removing it removes the channel the conversations hang from. Export anything you need first; the embed code stops working immediately.

## Path parameters

- `widget_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `404`: No widget with this id in the workspace.
- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
