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

## Request

- Base URL: `https://app.freeplay.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.freeplay.ai/api/v2/projects/{project_id}/prompt-templates/id/{template_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/freeplay/apis/freeplay-api/docs/api/v2/projects/:project_id/prompt-templates/id/:template_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/freeplay/apis/freeplay-api.md) - [All operations](https://skmtc.dev/freeplay/apis/freeplay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/freeplay/apis/freeplay-api/revisions/69c553220183?raw)
