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

> Stamps the release deleted and frees the slot it held against the workspace's release limit, so a workspace at the limit can make room itself. Idempotent: a release already deleted answers 204 again. Refused with 409 while a deployment in the workspace serves the release (its current routes send it any traffic, stopped deployments included), is moving onto it, is being deleted and has not yet torn down its copy on it, or predates recorded revisions. A copy a deployment only keeps from an earlier update, for a move back, does not refuse it; once the release is deleted, a move, rollback or start back onto it is refused, and the release's stored files stay while that copy does: until Deploy retires it, which it does not do yet, and with no end date for a copy its owner or a spend policy paused. A deleted release drops out of its build's release list, takes no more added targets, and stops satisfying a re-cut of the same definition, which makes a new release instead.




## OpenAPI

````yaml /openapi-builder.yaml delete /v1/releases/{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/releases/{id}:
    delete:
      summary: Delete a release
      description: >
        Stamps the release deleted and frees the slot it held against the
        workspace's release limit, so a workspace at the limit can make room
        itself. Idempotent: a release already deleted answers 204 again. Refused
        with 409 while a deployment in the workspace serves the release (its
        current routes send it any traffic, stopped deployments included), is
        moving onto it, is being deleted and has not yet torn down its copy on
        it, or predates recorded revisions. A copy a deployment only keeps from
        an earlier update, for a move back, does not refuse it; once the release
        is deleted, a move, rollback or start back onto it is refused, and the
        release's stored files stay while that copy does: until Deploy retires
        it, which it does not do yet, and with no end date for a copy its owner
        or a spend policy paused. A deleted release drops out of its build's
        release list, takes no more added targets, and stops satisfying a re-cut
        of the same definition, which makes a new release instead.
      operationId: deleteRelease
      parameters:
        - $ref: '#/components/parameters/PathID'
      responses:
        '204':
          description: Deleted (or already deleted).
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            A deployment still uses this release; the message names each one and
            how to clear it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    PathID:
      name: id
      in: path
      required: true
      schema:
        type: string
  responses:
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    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.