---
title: "Delete a prompt version"
method: DELETE
path: "/api/prompts/{prompt_id}/versions/{version}/"
tags: ["prompts"]
---

# Delete a prompt version

`DELETE /api/prompts/{prompt_id}/versions/{version}/`

Delete a specific prompt version. The currently deployed live version cannot be deleted.

## Path parameters

- `prompt_id` string, required
- `version` integer, required

## Headers

- `Authorization` string, required

## Response `200`

Successful response

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Missing/invalid authentication
- `404` — Prompt version not found

## Changes

- **2026-08-13** `4e064cf81dae` — 1 breaking, 3 info
  - for the `path` request parameter `version`, the type changed from `string` to `integer`
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `404`
- **2026-07-31** `c26d550029f8` — 4 info
  - for the `path` request parameter `version`, the type was generalized from `integer` to `string`
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `404`

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/prompts/:prompt_id/versions/:version/delete.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/4e064cf81dae/schema)
