---
title: "Archive Prompt"
method: DELETE
path: "/prompts/{id}"
tags: ["Prompts"]
---

# Archive Prompt

`DELETE /prompts/{id}`

Archive a prompt you no longer need. Archived prompts are soft-deleted (we set an `archived_at` timestamp) so you can still access them for historical data.

**Safety First:**
- Can't archive a prompt that's currently active. You must activate a different version first.
- Historical data is preserved—old conversations continue to reference archived prompts so your message history stays intact.
- Archived prompts remain accessible for reporting and analysis.

## Path parameters

- `id` string, uuid, required — The prompt ID to archive

## Response `200`

Prompt archived successfully

- DeletePromptResponse
  - `promptId` string, uuid, required — The archived prompt ID.
  - `externalPromptId` string — The external prompt ID.
  - `archivedAt` string, required — ISO 8601 timestamp when archived.

## Other responses

- `404` — Prompt not found
- `500` — Server error

## Changes

- **2025-11-24** `c1998d918478` — 1 info
  - api tag `Prompts` added
- **2025-10-29** `f1cd8a0e3bee` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/greenflash-ai/apis/greenflash-api-reference/changes/prompts/:id/delete.md)

---

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