Cancel Download
Download Endpoints
Cancel Download
Cancels an in-progress download task
DELETE
Cancel Download
Path Parameters
The unique identifier of the download task to cancel
Response
Confirmation message indicating the download was cancelled
Example Request
cURL
JavaScript
Python
Example Response
Error Responses
404 Not Found
Returned when thedownload_id doesn’t exist.
Behavior
- Sets the download task status to
"cancelled" - The task remains in the downloads list (visible via GET /api/downloads)
- The download process will stop, but any partial files may remain on disk
- To fully remove the task and clean up files, use DELETE /api/downloads//remove
Status Updates
After cancellation, querying GET /api/downloads will show:Cancel vs Remove
| Action | Endpoint | Effect |
|---|---|---|
| Cancel | DELETE /api/downloads/{id} | Stops the download, sets status to "cancelled", keeps task in list |
| Remove | DELETE /api/downloads/{id}/remove | Removes task from list and deletes all associated files |
Use Cases
- User clicks “Cancel” button during download
- Download is taking too long and user wants to start over
- Need to free up bandwidth for other downloads
- Wrong video was selected and needs to be stopped