# Delete branch file draft

```http
DELETE /projects/{project_reference}/branches/{branchName}/files/{filePath}/draft
```

Delete branch file draft. Requires project.files.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. |
| `branchName`        | path | Yes      |                                                            |
| `filePath`          | path | Yes      |                                                            |

## Responses

| Status | Description                                                                  |
| ------ | ---------------------------------------------------------------------------- |
| 200    | Draft discarded; already absent drafts also succeed.                         |
| 400    | Missing file path                                                            |
| 401    | Unauthorized                                                                 |
| 403    | Project files write capability required. API keys also require delete scope. |
| 404    | Source file or branch not found                                              |
| 500    | Server error                                                                 |
