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

# Kling Delete Element

> Delete a custom element by its element_id.

Delete a custom element you no longer need. You must provide the `element_id` from the query response (not the `task_id`). Only custom elements can be deleted — Kling preset elements cannot be deleted.

## Quick example

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

## Parameters

| Parameter    | Type   | Required | Description                                                   |
| ------------ | ------ | -------- | ------------------------------------------------------------- |
| `element_id` | string | Yes      | Element ID from `elements[].element_id` in the query response |

## Response

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

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

<script src="/feedback.js" />
