Delete element
January 12, 2026 (October 20, 2026)
Table of contents
This endpoint deletes a specific element by its ID. Use GET /elements to list your elements and get their IDs.
https://api.useapi.net/v1/kling/elements/
elementId?…
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Path Parameters
elementIdis required, the element ID to delete.
Query Parameters
emailis optional with one account. With more than one, pass theemailof the account that created the element: without it, the request goes to one of your accounts (429while every account is at itsmaxJobs) and may not find the element.
Responses
-
{ "deleted": 1 } -
{ "error": "Unauthorized", "code": 401 } -
{ "error": "<error message>" }
Model
{ // TypeScript
deleted: number
}
Examples
-
curl -X DELETE "https://api.useapi.net/v1/kling/elements/[email protected]" \ -H "Authorization: Bearer ..." -
const token = "API token"; const email = "Previously configured account email"; const elementId = "u_123456789012345"; const apiUrl = `https://api.useapi.net/v1/kling/elements/${elementId}?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" elementId = "u_123456789012345" apiUrl = f"https://api.useapi.net/v1/kling/elements/{elementId}?email={email}" headers = { "Authorization" : f"Bearer {token}" } response = requests.delete(apiUrl, headers=headers) print(response, response.json())