Delete file
Changed onDeletes a file, either permanently or by moving it to the trash.
The enterprise settings determine whether the item will be permanently deleted from Box or moved to the trash.
Request
- Base URLhttps://api.box.com/2.0
- URLhttps://api.box.com/2.0/files/{file_id}
- AuthOAuth 2Authorization code: https://account.box.com/api/oauth2/authorizeToken URL: https://api.box.com/oauth2/token
Path parameters
The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/files/123 the file_id is 123.
Headers
Ensures this item hasn't recently changed before making changes.
Pass in the item's last observed etag value into this header and the endpoint will fail with a 412 Precondition Failed if it has changed since.
Response
Returns an empty response when the file has been successfully deleted.
Changes
- warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status
- warning