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

# Delete a private upload

> Deletes one of the workspace's private uploads: its record, so it drops out of the list and no build can name it, then its bytes. An upload whose bytes were never sent deletes the same way. Refused with 409 while a build's definition, or a release that still has its storage, names it, or a live deployment adds it as a model; when only deployments hold it, buildIds is empty and message names them. A release counts until its storage is taken away after it or its build is deleted: soon for a finished release, up to about six hours after the deletion for one that was still queued or building. A deleted release that a deployment still keeps a copy of from an earlier update keeps its storage while that copy stays, and Deploy does not take such copies away yet, so waiting does not free the upload in that case. Answers 403 UPLOAD_DELETE_OFF, and deletes nothing, while deleting uploads is turned off for the workspace.




## OpenAPI

````yaml /openapi-builder.yaml delete /v1/blobs/{id}
openapi: 3.0.3
info:
  title: Comfy Builder API
  version: 0.1.0
  description: >
    Builder owns builds (editable environment definitions) and cuts immutable,
    deployable releases that Deploy later runs.
servers:
  - url: https://platformapi.comfy.org/builder
    description: Comfy Developer Platform
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /v1/blobs/{id}:
    delete:
      summary: Delete a private upload
      description: >
        Deletes one of the workspace's private uploads: its record, so it drops
        out of the list and no build can name it, then its bytes. An upload
        whose bytes were never sent deletes the same way. Refused with 409 while
        a build's definition, or a release that still has its storage, names it,
        or a live deployment adds it as a model; when only deployments hold it,
        buildIds is empty and message names them. A release counts until its
        storage is taken away after it or its build is deleted: soon for a
        finished release, up to about six hours after the deletion for one that
        was still queued or building. A deleted release that a deployment still
        keeps a copy of from an earlier update keeps its storage while that copy
        stays, and Deploy does not take such copies away yet, so waiting does
        not free the upload in that case. Answers 403 UPLOAD_DELETE_OFF, and
        deletes nothing, while deleting uploads is turned off for the workspace.
      operationId: deleteBlob
      parameters:
        - $ref: '#/components/parameters/PathID'
      responses:
        '204':
          description: Deleted.
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >
            A build or one of its releases still names this upload, or a live
            deployment adds it as a model (then buildIds may be empty).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlobInUseError'
components:
  parameters:
    PathID:
      name: id
      in: path
      required: true
      schema:
        type: string
  responses:
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    BlobInUseError:
      type: object
      description: >
        A 409 body for a private upload something still names. error is always
        BLOB_IN_USE.
      required:
        - error
        - buildIds
      properties:
        error:
          type: string
          description: Machine-readable error code. Always BLOB_IN_USE.
        message:
          type: string
          description: Human-readable detail.
        buildIds:
          type: array
          description: >
            The builds that name the upload, sorted: each one's definition names
            it, or a release cut from it does. Remove the upload from the
            definition, or delete the release, then retry. A release already
            deleted keeps naming it until its storage cleanup finishes: soon for
            a finished release, up to about six hours after the deletion for one
            that was still queued or building. Deleting it again changes
            nothing, so wait for the cleanup, then retry. A deleted release that
            a deployment still keeps a copy of from an earlier update keeps its
            storage while that copy stays, so waiting does not free the upload
            in that case. message says which applies. Empty when only
            deployments hold the upload, as an added model; message names them,
            and removing the model from each lets the delete go through.
          items:
            type: string
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable detail.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        A workspace-scoped Cloud JWT. A missing or invalid token is 401
        UNAUTHORIZED in the Error body.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        A workspace API key, sent alone. The service checks it on every request
        and acts as the key's user in the key's workspace. A request carrying a
        key and a Bearer token is 400 INVALID_REQUEST, and a value that is not a
        key's shape is 401 UNAUTHORIZED. A refused key answers 401
        (UNAUTHORIZED), 403 (FORBIDDEN), 404 (NOT_FOUND) or 429 (RATE_LIMITED)
        with its message and Retry-After; a 503 (SERVICE_UNAVAILABLE) means the
        key could not be checked right now, so retry. Each refusal answers the
        Error body.

````

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