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

# Clear Kling 비디오 선택

> CometAPI POST /kling/v1/videos/multi-elements/clear-selection을 통해 Kling 멀티모달 비디오 편집에서 활성 요소 선택을 지워 깔끔하게 편집합니다.

멀티모달 편집 세션의 현재 선택 상태를 지우려면 이 유틸리티 엔드포인트를 사용하세요.

## 사용 시점

* 현재 선택이 잘못되어 처음부터 다시 시작하고 싶을 때
* 최종 작업을 미리 보거나 제출하기 전에 편집 영역을 다시 구성하고 싶을 때

## 워크플로에서의 역할

* [편집용 비디오 초기화](./initialize-video-for-editing)에서 생성한 `session_id`만 필요합니다
* 초기화 시 반환된 동일한 계정과 정확한 `session_id`를 사용하세요
* 일반적으로 새 [비디오 선택 추가](./add-video-selection) 호출이 뒤따릅니다

<Tip>
  전체 파라미터 참조는 [Kling API documentation](https://kling.ai/document-api/apiReference/model/multiElements)를 참조하세요.
</Tip>


## OpenAPI

````yaml api/openapi/video/kling/multimodal-video-editing/post-clear-video-selection.openapi.json POST /kling/v1/videos/multi-elements/clear-selection
openapi: 3.1.0
info:
  title: Clear Video Selection API
  version: 1.0.0
servers:
  - url: https://api.cometapi.com
security:
  - bearerAuth: []
paths:
  /kling/v1/videos/multi-elements/clear-selection:
    post:
      summary: Clear Video Selection
      operationId: clear_video_selection
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - session_id
              properties:
                session_id:
                  type: string
                  description: Session id returned by the video initialization endpoint.
              default:
                session_id: <session_id>
            examples:
              Default:
                summary: Default
                value:
                  session_id: <session_id>
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: integer
                    description: Response code. `0` means the request succeeded.
                  message:
                    type: string
                    description: Response message.
                  data:
                    type: object
                    description: Route-specific response payload when present.
                    additionalProperties: true
                additionalProperties: true
      x-codeSamples:
        - lang: Shell
          label: Default
          source: >
            curl
            https://api.cometapi.com/kling/v1/videos/multi-elements/clear-selection
            \
              -H "Authorization: Bearer $COMETAPI_KEY" \
              -H "Content-Type: application/json" \
              -d '{
                  "session_id": "<session_id>"
                }'
        - lang: Python
          label: Default
          source: |
            import os
            import requests

            response = requests.post(
                "https://api.cometapi.com/kling/v1/videos/multi-elements/clear-selection",
                headers={"Authorization": "Bearer " + os.environ["COMETAPI_KEY"]},
                json={
                  "session_id": "<session_id>"
                },
            )

            result = response.json()
            print(result.get("code"), result.get("data"))
        - lang: JavaScript
          label: Default
          source: >
            const response = await
            fetch("https://api.cometapi.com/kling/v1/videos/multi-elements/clear-selection",
            {
              method: "POST",
              headers: {
                Authorization: `Bearer ${process.env.COMETAPI_KEY}`,
                "Content-Type": "application/json",
              },
              body: JSON.stringify({
                "session_id": "<session_id>"
              }),
            });


            const result = await response.json();

            console.log(result.code, result.data);
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token authentication. Use your CometAPI key.

````