---
title: "Abort Pending Download"
method: DELETE
path: "/files/downloads/{id}"
tags: ["Files"]
---

# Abort Pending Download

`DELETE /files/downloads/{id}`

Aborts a pending or processing zip download. Use the same `id` (download_id) as returned from POST /files/download and used with GET /files/downloads/:id. When status is `processing`, the running job will stop and abort the S3 multipart upload.

### Path Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | Integer | Yes | Temporary file ID (download_id from POST /files/download) |

### Notes

- Both `pending` and `processing` downloads can be aborted. If the download is already `uploaded`, `failed`, or `cancelled`, the API returns 4716.
- After abort, the temporary file is marked as `cancelled` and will not be processed.

## Path parameters

- `id` integer, required

## Response `200`

Download aborted successfully

- unknown

## Other responses

- `400` — Bad request (e.g. download cannot be aborted)
- `404` — Download not found or expired
- `4710` — Permission required
- `4716` — Download cannot be aborted (already uploaded or failed)

---

[API](https://skmtc.dev/vagon/apis/vagon-computers-api.md) · [All operations](https://skmtc.dev/vagon/apis/vagon-computers-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vagon/vagon-computers-api/revisions/2c128e38f47e/schema)
