> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdn-fly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling Delete Element

> Delete a custom element by element_id.

Delete custom elements you no longer need. Requires the `element_id` from the query response (not the `task_id`). Only custom elements can be deleted; Kling official preset elements cannot be deleted.

## Quick Example

```bash cURL theme={null}
curl https://dayu.cdn-fly.com/kling/v1/general/delete-elements \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"element_id": "863121023120580662"}'
```

```python Python theme={null}
import requests

response = requests.post(
    "https://dayu.cdn-fly.com/kling/v1/general/delete-elements",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    json={"element_id": "863121023120580662"}
)

result = response.json()
if result["code"] == 0:
    print("Element deleted successfully")
```

## Request Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `element_id` | string | ✅ | ID of the element to delete (from `elements[].element_id` in the query response) |

## Response

| Field | Description |
| - | - |
| `code` | `0` on success |
| `message` | `SUCCEED` on success |
| `request_id` | Request tracing ID |

> **[API Reference](/en/api-reference/model-api/kuaishou/kling-element-delete)**
>
> View the interactive API documentation for Kling Delete Element.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.