Delete element
January 12, 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 when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
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_300171730302481"; 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_300171730302481" 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())