---
title: "Delete prompt template"
method: DELETE
path: "/api/v2/projects/{project_id}/prompt-templates/id/{template_id}"
tags: ["Prompt Templates"]
---

# Delete prompt template

`DELETE /api/v2/projects/{project_id}/prompt-templates/id/{template_id}`

Archive a prompt template and all its versions. Use when retiring templates that are no longer needed. This is a soft delete.

## Path parameters

- `project_id` string, required
- `template_id` string, required

## Response `200`

EmptyResponse()

- object

---

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