Skip to content

DocsAPI referenceFiles

Delete several files

Deletes up to 100 uploads and outputs. Each id is answered on its own: deleted, or failed with the code and reason its single delete would answer.

POST /v1/files/delete

Needs an API key: Authorization: Bearer $VIDEXO_API_KEY.

Body DeleteFilesRequest

Body fields
NameTypeDescription
ids requiredarray of string, up to 128 characters1 to 100 file ids.

Request

bash
curl -X POST "$VIDEXO_API_URL/v1/files/delete" \
  -H "Authorization: Bearer $VIDEXO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    "up_0123456789abcdef01234567"
  ]
}'

Response

200 JSON
{
  "deleted": [
    "up_0123456789abcdef01234567"
  ],
  "failed": []
}

Responses

Responses
StatusBodyWhen
200DeleteFilesResultWhat was deleted and what was not.
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
413Problemlimit_exceeded (request_body_size)
429Problemrate_limited