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

# Delete Face Corpus

> Delete the corpus uploaded for a face.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/faces/{face_id}/corpus
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/faces/{face_id}/corpus:
    delete:
      tags:
        - Faces
      summary: Delete Face Corpus
      description: Delete the corpus uploaded for a face.
      operationId: delete_face_corpus_v1_faces__face_id__corpus_delete
      parameters:
        - name: face_id
          in: path
          required: true
          schema:
            type: string
            title: Face Id
        - name: medium
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Delete only this medium (e.g. 'email', 'text message'). Omit to
              delete the whole corpus, every medium.
            title: Medium
          description: >-
            Delete only this medium (e.g. 'email', 'text message'). Omit to
            delete the whole corpus, every medium.
        - name: kind
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Removed: use `medium`. Sending this is refused rather than
              ignored, because ignoring it would delete the WHOLE corpus.
            deprecated: true
            title: Kind
          description: >-
            Removed: use `medium`. Sending this is refused rather than ignored,
            because ignoring it would delete the WHOLE corpus.
          deprecated: true
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CorpusDeleteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CorpusDeleteResponse:
      properties:
        deleted:
          type: boolean
          title: Deleted
        alias:
          type: string
          title: Alias
        medium:
          anyOf:
            - type: string
            - type: 'null'
          title: Medium
        threads_deleted:
          type: integer
          title: Threads Deleted
        messages_deleted:
          type: integer
          title: Messages Deleted
      type: object
      required:
        - deleted
        - alias
        - threads_deleted
        - messages_deleted
      title: CorpusDeleteResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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