uploadxDocs
Esc

    Delete files

    Delete one file or many in a single request. The space is freed straight away.

    Request

    HTTP
    DELETE /v1/files/bulk
    Field Type Description
    fileIds string[] IDs of the files to delete
    Terminal
    curl -X DELETE https://api.uploadx.in/v1/files/bulk \
      -H "Authorization: Bearer $UPLOADX_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{ "fileIds": ["7a1d3e5f-9b2c-4d6e-8f0a-1c3e5a7b9d20", "4c6e8a0b-2d4f-4a6c-8e0b-3d5f7a9c1e30"] }'

    Response

    JSON
    { "ok": true }

    Deleting removes the stored file and its record, and frees the space against your plan at once. It cannot be undone.

    IDs that do not exist, or belong to another account, are skipped rather than failing the request, so it is safe to retry.

    To delete one file, send a list with one ID.