Delete Kling Task
October 7, 2025
Table of contents
This endpoint deletes a specific task and all its associated works (outputs) by task ID. Deleted tasks and works cannot be recovered. If the task has multiple works (e.g., multiple variations), all of them will be deleted.
https://api.useapi.net/v1/kling/tasks/
task_id
?…
The task_id
value should be a numeric identifier of the task you want to delete.
Request Headers
Authorization: Bearer {API token}
API token
is required, see Setup useapi.net for details.
Query Parameters
email
is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
-
{ "deleted": 1, "workIds": [987654321] }
The response indicates how many works were deleted and their IDs.
-
{ "error": "Invalid task_id parameter" }
-
{ "error": "Unauthorized", "code": 401 }
-
Task was not found or has no associated works.
{ "error": "No works found for task 123456789" }
Model
{ // TypeScript, all fields are optional
deleted: number // Number of works deleted
workIds: number[] // Array of deleted work IDs
}
Examples
-
curl -X DELETE "https://api.useapi.net/v1/kling/tasks/[email protected]" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const email = "Previously configured account email"; const taskId = "123456789"; const apiUrl = `https://api.useapi.net/v1/kling/tasks/${taskId}?email=${email}`; const response = await fetch(apiUrl, { method: "DELETE", headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" email = "Previously configured account email" task_id = "123456789" apiUrl = f"https://api.useapi.net/v1/kling/tasks/{task_id}?email={email}" headers = { "Authorization" : f"Bearer {token}" } response = requests.delete(apiUrl, headers=headers) print(response, response.json())