Skip to content

DocsAPI referenceFiles

Delete a file

Deletes an upload or an output now instead of at the end of its retention. Its links stop working at once, and a deleted upload no longer counts against the upload budget once its storage is freed.

DELETE /v1/files/{id}

Needs an API key: Authorization: Bearer $VIDEXO_API_KEY.

Parameters

Parameters
NameInTypeDescription
id requiredpathstring, up to 128 charactersThe file id.

Request

bash
curl -X DELETE "$VIDEXO_API_URL/v1/files/up_0123456789abcdef01234567" \
  -H "Authorization: Bearer $VIDEXO_API_KEY"

Response

200 JSON
{
  "id": "up_0123456789abcdef01234567",
  "deleted": true
}

Responses

Responses
StatusBodyWhen
200DeletedFileThe file was deleted.
400Probleminvalid_request
401Problemauthentication_failed (missing_api_key, invalid_api_key, api_key_revoked, api_key_expired)
403Problempermission_denied (token_scope): a client token cannot call this route
404Problemnot_found (file)
409Problemconflict (upload_in_use, job_active): a queued or running job reads the upload, or the output's job has not ended
429Problemrate_limited