---
title: "Delete a video indexing task"
method: DELETE
path: "/tasks/{task_id}"
tags: ["tasks"]
---

# Delete a video indexing task

`DELETE /tasks/{task_id}`

<Info>This method will be removed in a future version.</Info>

This action cannot be undone.
Note the following about deleting a video indexing task:
- You can only delete video indexing tasks for which the status is `ready` or `failed`.
- If the status of your video indexing task is `ready`, you must first delete the video vector associated with your video indexing task by calling the [`DELETE`](/v1.3/api-reference/videos/delete) method of the `/indexes/videos` endpoint.

## Path parameters

- `task_id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

Successful response

## Other responses

- `400` — The request has failed.

---

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