---
title: "Delete widget version"
method: DELETE
path: "/widget/{id}/{version}"
tags: ["Widgets"]
---

# Delete widget version

`DELETE /widget/{id}/{version}`

## Request

- Base URL: `https://api.lytics.io/v2`
- URL: `https://api.lytics.io/v2/widget/{id}/{version}`
- Auth: API key in header `Authorization`

Delete one version of a widget. Refused with 409 while that version is published.

## Path parameters

- `id` string, required
- `version` integer, required

## Query parameters

- `account_id` string

## Response `200`

Api Response

- ModelsApiResponse
  - `_meta` object: Response Metadata
  - `data` object: Response Payload
  - `request_id` string
  - `status` integer: HTTP Status Code

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error

## Changes

- **2026-11-03** `d8e975057aec`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lytics/apis/lytics-api/changes/widget/:id/:version/delete.md)

---

[API](https://skmtc.dev/lytics/apis/lytics-api.md) - [All operations](https://skmtc.dev/lytics/apis/lytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lytics/apis/lytics-api/revisions/d8e975057aec?raw)
