---
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}/`

## Request

- Base URL: `https://api.respan.ai`
- URL: `https://api.respan.ai/api/prompts/{prompt_id}/versions/{version}/`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Deletes the version. Deleting the deployed version leaves the prompt with no live version, so deploy another version first.

## Path parameters

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

## Response `204`

No content.

## Other responses

- `403`: The API key is missing, invalid or expired.
- `404`: Version not found

## Changes

- **2026-10-21** `c30bcb383ee8`: 1 breaking, 5 info
  - removed the success response with the status `200`
  - api operation id `prompts_deletePromptVersion` removed and replaced with `deletePromptVersion`
  - the endpoint scheme security `DashboardJwt` was added to the API
  - api tag `Prompts` added
  - …2 more
- **2026-10-02** `b830b79cfd52`: 1 warning, 4 info
  - removed the optional property `error` from the response with the `404` status
  - added the non-success response with the status `403`
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - …1 more
- **2026-09-17** `6fa8242da8c2`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `RespanApiKey` was added to the API
- **2026-09-12** `22b868ef3f22`: 1 info
  - api operation id `delete-prompt-version` removed and replaced with `prompts_deletePromptVersion`

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

---

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