---
title: "Archive a task"
method: DELETE
path: "/api/tasks/{taskId}"
tags: ["Tasks"]
---

# Archive a task

`DELETE /api/tasks/{taskId}`

Archive a task so it stops appearing in `GET /tasks` results. Turns and files are retained for audit purposes. Only the worker creator can archive a task.

## Path parameters

- `taskId` string, required

## Response `200`

Archive result.

- DeleteTaskResponse
  - `archived` boolean, required

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not found.
- `429` — Rate limit exceeded.
- `500` — Internal server error.

## Changes

- **2026-05-11** `83fc717b9863` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ramensoft/apis/handinger-api/changes/api/tasks/:taskId/delete.md)

---

[API](https://skmtc.dev/ramensoft/apis/handinger-api.md) · [All operations](https://skmtc.dev/ramensoft/apis/handinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ramensoft/handinger-api/revisions/95b6b61a63ef/schema)
