Delete Kling Task

October 7, 2025

Table of contents

  1. Request Headers
  2. Query Parameters
  3. Responses
  4. Model
  5. Examples
  6. Try It

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}
Query Parameters
  • email is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
  • 200 OK

    {
      "deleted": 1,
      "workIds": [987654321]
    }
    

    The response indicates how many works were deleted and their IDs.

  • 400 Bad Request

    {
      "error": "Invalid task_id parameter"
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
  • 404 Not Found

    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())
    
Try It