# Delete build


```
DELETE 
https://api.apify.com/v2/actor-builds/:buildId
```


Delete the build. The build that is the current default build for the Actor cannot be deleted.

Only users with build permissions for the Actor can delete builds.

## Request

### Path Parameters

* **buildId** string required

  ID of the build you want to get, found in the build's `Info` tab.

  **Example:** `soSkq9ekdmfOslopH`

<!-- -->

### Status 204

**Response Headers**



### Status 400

Bad request - invalid input parameters or request body.


```
{
  "error": {
    "type": "invalid-input",
    "message": "Invalid input: The request body contains invalid data."
  }
}
```


**Schema**

* **error** object required

  * **type** string required\
    **Example:** `run-failed`
  * **message** string required\
    **Example:** `Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: FAILED)`
