---
title: "Manage execution history"
method: POST
path: "/api/history"
tags: ["workflow"]
deprecated: true
---

# Manage execution history

`POST /api/history`

> **Deprecated.**

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

Clear all history for the authenticated user or delete specific job IDs.
Supports clearing all history or deleting specific job IDs.

## Request body

- HistoryManageRequest — Request to manage history operations
  - `clear` boolean — If true, clear all history for the authenticated user
  - `delete` string[] — Array of job IDs to delete from history

## Response `200`

Success - History management operation completed

## Other responses

- `400` — Invalid request parameters
- `401` — Unauthorized - Authentication required
- `500` — Internal server error

---

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