---
title: "Clear or delete history entries"
method: POST
path: "/api/history"
tags: ["history"]
deprecated: true
---

# Clear or delete history entries

`POST /api/history`

> **Deprecated.**

**Deprecated.** Superseded by the forthcoming job-management endpoints
under `/api/jobs`. Planned for removal no earlier than a future major
release; sunset timeline TBD.

## Headers

- `Comfy-User` string

## Request body

- HistoryManageRequest — Request to clear or delete history entries
  - `clear` boolean — If true, clear all history
  - `delete` string[] — Array of prompt IDs to delete from history

## Response `200`

History updated

## Changes

- **2026-04-24** `a66055fa384e` — 6 info
  - api tag `history` added
  - api tag `workflow` removed
  - added the new optional `header` request parameter `Comfy-User`
  - removed the non-success response with the status `400`
  - …2 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/history/post.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/a66055fa384e/schema)
