# Delete deployment

```http
DELETE /projects/{project_reference}/deployments/{deployment_id}
```

Delete a deployment. Requires project.deployments.write; API keys also need delete scope.

## Parameters

| Name                | In   | Required | Description                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project. |
| `deployment_id`     | path | Yes      | Deployment ID                                              |

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | Deployment deleted successfully                |
| 401    | Unauthorized                                   |
| 403    | Forbidden. API keys also require delete scope. |
| 404    | Not found                                      |
| 409    | Conflict                                       |
| 500    | Server error                                   |
