---
title: "Delete Prompt Version Draft"
method: DELETE
path: "/v1/prompts/{id}/versions/{version}"
tags: ["Prompt Versions"]
---

# Delete Prompt Version Draft

`DELETE /v1/prompts/{id}/versions/{version}`

Deletes a specific prompt template version.
Only versions currently in the 'draft' status may be deleted.

## Path parameters

- `id` string, uuid, required
- `version` string, required

## Response `204`

Version deleted successfully

## Other responses

- `400` — Invalid path formatting
- `401` — Unauthorized
- `404` — Version not found
- `422` — Only draft versions can be deleted

## Changes

- **2026-07-02** `e500bc0895c5` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
- **2026-06-29** `162c1e986d3a` — 2 info
  - api tag `Prompt Versions` added
  - api tag `Prompts` removed
- **2026-06-29** `27457b167aec` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/px0-ai/apis/px0-api/changes/v1/prompts/:id/versions/:version/delete.md)

---

[API](https://skmtc.dev/px0-ai/apis/px0-api.md) · [All operations](https://skmtc.dev/px0-ai/apis/px0-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/px0-ai/px0-api/revisions/3ed72443989d/schema)
