Box Developer Documentation

A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.

Delete a File Request

Delete a File Request

To delete a file request, all you need is its unique ID.

cURL
curl -i -X DELETE "https://api.box.com/2.0/file_requests/42037322" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.fileRequests.deleteFileRequestById(updatedFileRequest.id);
Python v10
client.file_requests.delete_file_request_by_id(updated_file_request.id)
.NET v10
await client.FileRequests.DeleteFileRequestByIdAsync(fileRequestId: updatedFileRequest.Id);
Swift v10
try await client.fileRequests.deleteFileRequestById(fileRequestId: updatedFileRequest.id)
Java v10
client.getFileRequests().deleteFileRequestById(updatedFileRequest.getId())
.NET v6
await client.FileRequests.DeleteFileRequestByIdAsync(fileRequestId: updatedFileRequest.Id);
Node v4
await client.fileRequests.deleteFileRequestById(updatedFileRequest.id);

The ID of a file request can be determined by visiting the Box web app and inspecting the URL. Please check our guide on setting up a file request template to learn how to determine a file request ID.