Search and DownloadsCancel a Download

Cancel a Download

Cancel an in-progress download. Cancelled downloads retain records added before cancellation.

curl -X DELETE "https://api.datafiniti.co/v4/downloads/example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "message": "example_string"
}
DELETE
/downloads/{id}
DELETE
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>

Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>
path
idstring
Required

The unique identifier of the download to cancel

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>

Path Parameters

idstring
Required

The unique identifier of the download to cancel

Responses

messagestring

Confirmation message

Cancel a download only while its status is queued or running. Downloads that have already completed cannot be cancelled. Cancelling stops the download but does not delete it: records added before cancellation are retained and remain retrievable through GET /downloads/{id}.

Result links for a download expire after 7 days. Retrieve the records before then.

Your account will still have credits deducted for the number of records that were added before the download was cancelled.