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

# Purge Style

> Delete the face's style build, and nothing else.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/style/faces/{self_face}
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/style/faces/{self_face}:
    delete:
      tags:
        - Style
      summary: Purge Style
      description: Delete the face's style build, and nothing else.
      operationId: purge_style_v1_style_faces__self_face__delete
      parameters:
        - name: self_face
          in: path
          required: true
          schema:
            type: string
            title: Self Face
        - name: medium
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Delete only this medium's style build and keep the face's others.
              Omit on a face with several only with `all=true`.
            title: Medium
          description: >-
            Delete only this medium's style build and keep the face's others.
            Omit on a face with several only with `all=true`.
        - name: all
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Delete EVERY style build this face has. Required when the face
              holds more than one and no `medium` is named.
            default: false
            title: All
          description: >-
            Delete EVERY style build this face has. Required when the face holds
            more than one and no `medium` is named.
        - 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/PurgeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PurgeResponse:
      properties:
        deleted:
          type: boolean
          title: Deleted
        self_face:
          type: string
          title: Self Face
        versions_deleted:
          type: integer
          title: Versions Deleted
        build_jobs_deleted:
          type: integer
          title: Build Jobs Deleted
        medium:
          anyOf:
            - type: string
            - type: 'null'
          title: Medium
        scoped:
          type: boolean
          title: Scoped
          default: false
      type: object
      required:
        - deleted
        - self_face
        - versions_deleted
        - build_jobs_deleted
      title: PurgeResponse
    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.