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

# Delete Build

> Permanently delete a build from storage.

<Info>
  **Permission Required**: `project:manage-build-storage`
</Info>

Permanently delete a build from storage. This action cannot be undone.

## Path Parameters

<ParamField path="buildId" type="string" required>
  The build ID (UUID)
</ParamField>

## Response

<ResponseField name="message" type="string">
  Success message confirming the build was deleted
</ResponseField>

<RequestExample>
  ```bash cURL theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  curl -X DELETE "https://nunu.ai/api/v1/project/your-project-id/builds/123e4567-e89b-12d3-a456-426614174000" \
    -H "X-Api-Key: YOUR_API_TOKEN"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  {
    "message": "build deleted successfully"
  }
  ```
</ResponseExample>


## OpenAPI

````yaml DELETE /project/{projectId}/builds/{buildId}
openapi: 3.1.0
info:
  title: nunu.ai API
  description: >-
    The nunu.ai Public API allows you to programmatically interact with your
    projects, manage test runs, and upload builds.
  version: 1.0.0
servers:
  - url: https://nunu.ai/api/v1
security:
  - apiKeyAuth: []
paths:
  /project/{projectId}/builds/{buildId}:
    parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
        description: >-
          The project ID. You can copy it from the project settings page or the
          project URL in the dashboard.
    delete:
      tags:
        - Builds
      summary: Delete Build
      description: Permanently delete a build from storage.
      operationId: deleteBuild
      parameters:
        - name: buildId
          in: path
          required: true
          description: The build ID (UUID)
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Build deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteBuildResponse'
        '400':
          description: Bad Request - buildId is required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - API key lacks required permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Build not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DeleteBuildResponse:
      type: object
      properties:
        message:
          type: string
          description: Success message
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details:
          type: object
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: API key for authentication

````