DocsAPI referenceFiles
Abort a multipart upload
Use upload_url of a multipart upload. Deletes it and its parts, as DELETE /v1/files/{id} does. No API key is required.
DELETE /v1/uploads/{id}
Needs no API key.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string | |
account required | query | string | |
expires required | query | string | |
signature required | query | string |
Request
bash
# From the answer of POST /v1/uploads with multipart: true. It needs no API key.
curl --fail-with-body -X DELETE "https://api.videxo.io/v1/uploads/up_0123456789abcdef01234567?account=acc_7Gq2x9LmTnV4&expires=1793822400&signature=example"Copy failed. The text is selected; copy it with your keyboard.
JavaScript
// `upload` is the answer of POST /v1/uploads with multipart: true. Its URLs need no API key.
const response = await fetch(upload.upload_url, { method: 'DELETE' });
const deleted = await response.json();Copy failed. The text is selected; copy it with your keyboard.
Response
200 JSON
{
"id": "up_0123456789abcdef01234567",
"deleted": true
}Copy failed. The text is selected; copy it with your keyboard.
Responses
| Status | Body | When |
|---|---|---|
| 200 | DeletedFile | The upload was deleted. |
| 403 | Problem | permission_denied (link_invalid) |
| 404 | Problem | not_found (upload): unknown, deleted or aborted |
| 409 | Problem | conflict (upload_in_use): a queued or running job reads the completed upload |
| 410 | Problem | resource_expired (upload_expired, link_expired) |
| 429 | Problem | rate_limited, with Retry-After in seconds |