# Delete upload

```http
DELETE /projects/{project_reference}/uploads/{upload_reference}
```

Soft-delete an upload so it no longer lists or downloads. Requires project.uploads.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.                                                                                                                                     |
| `upload_reference`  | path | Yes      | Upload path to soft-delete. Requires upload write and path edit access; API keys also need delete scope. Restoration requires the deleted record to exist; no deletion-age cutoff is enforced. |

## Responses

| Status | Description                                                                        |
| ------ | ---------------------------------------------------------------------------------- |
| 200    | File deleted successfully.                                                         |
| 400    | Missing file path                                                                  |
| 401    | Unauthorized                                                                       |
| 403    | The caller lacks access to the upload or path. API keys also require delete scope. |
| 404    | File not found, or not visible to the caller                                       |
| 409    | The upload changed concurrently                                                    |
| 500    | Server error                                                                       |
