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

# Delete file

> Deletes your row for this hash. Refused while one of your non-terminal generations uses it; the durable object is removed once no row references it.



## OpenAPI

````yaml /hub/openapi/hub.json delete /api/v1/hub/files/sha256/{hash}
openapi: 3.0.1
info:
  title: Fanify Hub API
  description: Generate media and text with Fanify credits. All prices use EUR.
  version: v1
servers:
  - url: https://fanifyai.com
security: []
paths:
  /api/v1/hub/files/sha256/{hash}:
    delete:
      tags:
        - Files
      summary: Delete file
      description: >-
        Deletes your row for this hash. Refused while one of your non-terminal
        generations uses it; the durable object is removed once no row
        references it.
      parameters:
        - name: hash
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: >-
            Your row for this hash is deleted; the durable object goes once no
            row references it.
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                required:
                  - type
                  - title
                  - status
                  - code
                type: object
                properties:
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    format: int32
                  detail:
                    type: string
                    nullable: true
                  instance:
                    type: string
                  code:
                    enum:
                      - unauthorized
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                  unrepresentable:
                    type: array
                    items:
                      type: string
                  missing:
                    type: array
                    items:
                      required:
                        - sha256
                      type: object
                      properties:
                        sha256:
                          type: string
                        kind:
                          type: string
                          nullable: true
              example:
                type: https://fanifyai.com/docs/hub/errors#unauthorized
                title: Unauthorized
                status: 401
                code: unauthorized
        '404':
          description: Resource not found
          content:
            application/problem+json:
              schema:
                required:
                  - type
                  - title
                  - status
                  - code
                type: object
                properties:
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    format: int32
                  detail:
                    type: string
                    nullable: true
                  instance:
                    type: string
                  code:
                    enum:
                      - resource_not_found
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                  unrepresentable:
                    type: array
                    items:
                      type: string
                  missing:
                    type: array
                    items:
                      required:
                        - sha256
                      type: object
                      properties:
                        sha256:
                          type: string
                        kind:
                          type: string
                          nullable: true
              example:
                type: https://fanifyai.com/docs/hub/errors#resource_not_found
                title: Resource not found
                status: 404
                code: resource_not_found
        '429':
          description: Rate limit reached
          headers:
            Retry-After:
              description: Seconds before retrying.
              schema:
                type: string
          content:
            application/problem+json:
              schema:
                required:
                  - type
                  - title
                  - status
                  - code
                type: object
                properties:
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    format: int32
                  detail:
                    type: string
                    nullable: true
                  instance:
                    type: string
                  code:
                    enum:
                      - rate_limited
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                  unrepresentable:
                    type: array
                    items:
                      type: string
                  missing:
                    type: array
                    items:
                      required:
                        - sha256
                      type: object
                      properties:
                        sha256:
                          type: string
                        kind:
                          type: string
                          nullable: true
              example:
                type: https://fanifyai.com/docs/hub/errors#rate_limited
                title: Rate limit reached
                status: 429
                code: rate_limited
        '503':
          description: Generation in progress
          content:
            application/problem+json:
              schema:
                required:
                  - type
                  - title
                  - status
                  - code
                type: object
                properties:
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    format: int32
                  detail:
                    type: string
                    nullable: true
                  instance:
                    type: string
                  code:
                    enum:
                      - generation_in_progress
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                  unrepresentable:
                    type: array
                    items:
                      type: string
                  missing:
                    type: array
                    items:
                      required:
                        - sha256
                      type: object
                      properties:
                        sha256:
                          type: string
                        kind:
                          type: string
                          nullable: true
              example:
                type: https://fanifyai.com/docs/hub/errors#generation_in_progress
                title: Generation in progress
                status: 503
                code: generation_in_progress
      security:
        - Bearer: []
components:
  securitySchemes:
    Bearer:
      type: http
      description: Fanify API key.
      scheme: bearer
      bearerFormat: fanify_sk_...

````

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