Remove upload session

delete
https://upload.box.com/api/2.0
/files/upload_sessions/:upload_session_id

Abort an upload session and discard all data uploaded.

This cannot be reversed.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
D5E3F7A

The ID of the upload session.

Response

none

A blank response is returned if the session was successfully aborted.

application/jsonClient error

An unexpected client error.

delete
Remove upload session
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/files/upload_sessions/F971964745A5CD0C001BBE4E58196BFD" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Java
session.abort();
Python
client.upload_session('11493C07ED3EABB6E59874D3A1EF3581').abort()
print('Upload was successfully canceled')
Node
// Cancel upload session 93D9A837B45F
client.files.abortUploadSession('93D9A837B45F', callback);