---
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

---

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