---
title: "Cancel Task"
method: DELETE
path: "/screenplay/tasks/{task_id}"
---

# Cancel Task

`DELETE /screenplay/tasks/{task_id}`

## Path parameters

- `task_id` string, required

## Response `200`

Task cancelled successfully

- object
  - `code` integer — Response code indicating the result status
  - `msg` string — Response message
  - `data` object
    - `task_id` string — The cancelled task ID
    - `status` string — Task status after cancellation
  - `success` boolean — Indicates whether the cancellation was successful
  - `failed` boolean — Indicates whether the cancellation failed

---

[API](https://skmtc.net/memories/apis/screenplay-extraction-api.md) · [All operations](https://skmtc.net/memories/apis/screenplay-extraction-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/memories/screenplay-extraction-api/versions/720c8c144ddc/schema)
