> ## Documentation Index
> Fetch the complete documentation index at: https://doc.starrise.tech/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

<CodeGroup>
  ```bash cURL theme={null}
  curl https://ai.alad.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://ai.alad.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")
  ```
</CodeGroup>

## 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   |

<Card title="API Reference" icon="code" href="/en/api-reference/model-api/kuaishou/kling-element-delete">
  View the interactive API documentation for Kling Delete Element.
</Card>
