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

# 컬렉션에서 얼굴 삭제

> 컬렉션에서 특정 얼굴을 제거

이 API 엔드포인트를 통해 특정 컬렉션에서 얼굴을 삭제할 수 있습니다. 이 기능은 얼굴 인식 데이터베이스를 관리하고 정리하는 데 유용합니다.

## 요청

### 헤더

<ParamField header="x-api-key" type="string">
  인증 및 접근 제어에 사용되는 API 키입니다. 이 헤더 매개변수는 인증에 필요합니다.
</ParamField>

### 쿼리 매개변수

<ParamField header="collectionId" type="string" required>
  얼굴이 포함된 컬렉션의 고유 식별자입니다.
</ParamField>

<ParamField header="faceId" type="string" required>
  삭제할 얼굴의 고유 식별자입니다.
</ParamField>

## 응답

### 성공 응답 (200)

<ResponseField name="message" type="string">
  얼굴 삭제 결과를 나타내는 성공 메시지
</ResponseField>

### 오류 응답

#### 잘못된 요청 (400)

<ResponseField name="errorCode" type="number">
  문제 해결을 위한 특정 오류를 식별합니다:

  * 6030: CollectionId가 필요합니다
  * 6031: FaceId가 필요합니다
  * 6032: 컬렉션 정보를 찾을 수 없습니다
  * 6033: 이 컬렉션은 사용할 수 없습니다
  * 6034: 얼굴 삭제 실패
</ResponseField>

<ResponseField name="message" type="string">
  오류에 대한 간략한 설명입니다. 자세한 내용은 오류 코드를 참조하세요.
</ResponseField>

#### 금지됨 (403)

<ResponseField name="errorCode" type="number">
  문제 해결을 위한 특정 오류를 식별합니다:

  * 6039: API 키가 필요합니다
  * 6040: 액세스 거부: API 키를 사용할 수 없습니다
</ResponseField>

<ResponseField name="message" type="string">
  오류에 대한 간략한 설명입니다. 자세한 내용은 오류 코드를 참조하세요.
</ResponseField>


## OpenAPI

````yaml DELETE /faces
openapi: 3.1.0
info:
  title: Face ID API
  description: >-
    API for facial recognition and identity verification using Face ID
    technology
  version: 1.0.0
servers:
  - url: https://face.argosidentity.com
    description: Production server
security: []
paths:
  /faces:
    delete:
      tags:
        - Face ID
      summary: Delete a face from collection
      description: Remove a specific face from a collection
      operationId: deleteFace
      parameters:
        - name: collectionId
          in: query
          required: true
          schema:
            type: string
          description: Unique identifier of the collection
        - name: faceId
          in: query
          required: true
          schema:
            type: string
          description: Unique identifier of the face to delete
      responses:
        '200':
          description: Face successfully deleted from collection
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Success message
                    example: Face deleted successfully
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  errorCode:
                    type: number
                    description: Error code
                    enum:
                      - 6030
                      - 6031
                      - 6032
                      - 6033
                      - 6034
                  message:
                    type: string
                    description: Error message
        '403':
          description: Forbidden - Authentication required
          content:
            application/json:
              schema:
                type: object
                properties:
                  errorCode:
                    type: number
                    description: Error code
                    enum:
                      - 6039
                      - 6040
                  message:
                    type: string
                    description: Error message
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````